Skip to content

Instantly share code, notes, and snippets.

@plainspooky
Created July 6, 2019 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plainspooky/e68532e4a5b8773ec5d53c2467e09c70 to your computer and use it in GitHub Desktop.
Save plainspooky/e68532e4a5b8773ec5d53c2467e09c70 to your computer and use it in GitHub Desktop.
This code tests sprite render bug
10 COLOR 15,0,0:SCREEN 2,2,0
15 SPRITE$(0)=STRING$(32,&HAA):Y%=15:X%=192
20 PUT SPRITE 0,(128,95),15,0
25 VDP(4)=0 ' Try with 1 or 2 too!
30 PUT SPRITE 8,(X%,Y%),7,0
35 J%=STICK(0)
40 IF (PEEK(&HF3E7) AND 32) THEN COLOR ,,8 ELSE COLOR ,,0
45 Y%=Y%-(J%=5)+(J%=1)
50 X%=X%-(J%=3)+(J%=7)
55 GOTO 30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment