mem optimization, nicer explosions

This commit is contained in:
2022-04-27 09:09:07 -04:00
parent 5d86373b98
commit d57a8265db
5 changed files with 21 additions and 50 deletions
+10 -6
View File
@@ -549,16 +549,20 @@ ExplosionLoop
lda radius
cmp ExplosionRadius
bcc ExplosionLoop
lda #0
sta color
ldx #0
stx color
inx
stx radius
ExplosionLoop2
jsr circle
dec radius
inc radius
lda radius
bne ExplosionLoop2
lda #1
sta color
cmp ExplosionRadius
bcc ExplosionLoop2
mva #1 color
;check tanks' distance from the centre of the explosion
mwa #DrawLen DrawJumpAddr