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
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 ?
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.
Nice one! I think it lacks a border to be visible on a white BG, but its metal look is cute!
I added a border and made this cart multi-cursor capable. Because why not.
[Please log in to post a comment]