0
0
Fork 0
mirror of https://git.sr.ht/~rabbits/uxn synced 2025-01-06 23:51:19 +00:00

Fix new apple hidden underneath snake body

This commit is contained in:
Andrew Alderwick 2021-11-02 23:40:42 +00:00
parent 3747574cf9
commit 8926bbab2a

View file

@ -70,6 +70,7 @@ BRK
( clear ) #00 ;draw-snake JSR2
( update ) ;move JSR2
( draw ) #02 .snake/dead LDZ + ;draw-snake JSR2
#83 ;draw-apple JSR2
( score ) .snake/length LDZ #41 ;draw-score JSR2
( reset ) #00 .arena/timer STZ
@ -168,7 +169,6 @@ RTN
.arena/w LDZ MOD .apple/x STZ
.DateTime/hour DEI2 .DateTime/minute DEI2 MUL2 #abcd MUL2 +
.arena/h LDZ MOD .apple/y STZ
#83 ;draw-apple JSR2
RTN