Skip to content

Instantly share code, notes, and snippets.

@fu-sen
Last active April 19, 2025 02:31
Show Gist options
  • Save fu-sen/7274477 to your computer and use it in GitHub Desktop.
Save fu-sen/7274477 to your computer and use it in GitHub Desktop.
' move cursor with a mouse | MSX-BASIC
' Copyright (c) 2003 BALLOON | FU-SEN
' The MIT License (MIT) - https://mit.balloon.net.eu.org/#2003
10 COLOR 15,4,7:SCREEN 1:KEY OFF
20 XX=128:YY=96
30 SPRITE$(0)=CHR$(224)+CHR$(192)+CHR$(128)
40 S=PAD(12)
50 XX=XX+PAD(13):YY=YY+PAD(14)
60 XX=(XX+256) MOD 256:YY=(YY+192) MOD 192
70 PUT SPRITE 0,(XX,YY),15,0
80 LOCATE 0,0
90 PRINT XX,YY;" ";
100 GOTO 40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment