mirror of
https://github.com/pkali/scorch_src.git
synced 2026-05-21 06:39:46 +02:00
mem optimization, nicer explosions
This commit is contained in:
+10
-6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user