Better, longer, faster... Funky Bomb.

This commit is contained in:
Pecusx
2022-11-12 21:41:50 +01:00
parent bbedaee3ac
commit 327b78a105
3 changed files with 12 additions and 1 deletions
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+12 -1
View File
@@ -172,7 +172,18 @@ FunkyBombLoop
mwa ytrajfb ytraj+1
mva #sfx_funky_hit sfx_effect
jsr Flight
mva #1 ExplosionRadius ; if no explosion (off screen)
mva #0 ExplosionRadius ; if no explosion (off screen)
; if xdraw if over range then fix it
lda xdraw+1
bpl NoOnLeftEdge
lda #0
sta xdraw
sta xdraw+1
NoOnLeftEdge
cpw xdraw #screenwidth
bcc NoOnRightEdge
mwa #screenwidth xdraw
NoOnRightEdge
jsr CalculateExplosionRange ; add end of flight coordinates to soildown range
lda HitFlag
beq NoExplosionInFunkyBomb