Log In  

Cart #hujupinuzo-1 | 2024-01-27 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4

A small cart with mouse cursors.

  • Pretty cursor
  • Metal cursor (props to tetris mino)

  • Added debug+change cursor feature
  • Added some help text

  • Dropped the out of bound check
P#140671 2024-01-26 20:59 ( Edited 2024-01-27 21:37)

I'll keep this bookmarked in case someone needs an example of mouse use. The missing pixel in the top left of the mouse sprite is very useful in many situations. I'm not sure what you are trying to do with the s_x and s_y offsets, Guess it could be useful for a crosshair cursor. Not sure either why the hard-coded 1 pixel border. Is it to make border navigation easier ?

P#140675 2024-01-26 21:27

s_x and s_y move are used to offset the sprite so that the top white pixel of the mouse is exactly at the real mouse's position. Useful if you really want to trigger action on clicks...

I used the 1 pixel border as this is something that most mouses do, ie, never completely go "outside" the screen borders (on my OS, it's always several pixel inside the screen). I hope it makes some sense.

P#140676 2024-01-26 21:45

I use a metal mouse type thing
[8x8]

P#140718 2024-01-27 21:02

Nice one! I think it lacks a border to be visible on a white BG, but its metal look is cute!

P#140721 2024-01-27 21:16

I added a border and made this cart multi-cursor capable. Because why not.

P#140723 2024-01-27 21:35

[Please log in to post a comment]