FunkyBomb and LeapFrog bugfix #89

Problem was due to the better accuracy of the collision with tank check procedure.
This commit is contained in:
Pecusx
2022-06-06 09:42:22 +02:00
parent afd81c08c3
commit 1394524a26
2 changed files with 3 additions and 1 deletions
+3 -1
View File
@@ -130,6 +130,7 @@ VOID
mva LeapFrogAngle Angle
mva #sfx_funky_hit sfx_effect
sbw ytraj+1 #$05 ; next missiles start point goes 5 pixel UP to prevent multiple explosion at one point if tank is hit (4 pixels tank height + 1)
jsr Flight
lda HitFlag
beq EndOfLeapping
@@ -159,6 +160,7 @@ VOID
ror Force
mva LeapFrogAngle Angle
mva #sfx_funky_hit sfx_effect
sbw ytraj+1 #$05 ; next missiles start point goes 5 pixel UP to prevent multiple explosion at one point if tank is hit (4 pixels tank height + 1)
jsr Flight
lda HitFlag
beq EndOfLeapping
@@ -178,7 +180,7 @@ EndOfLeapping
.proc funkybomb ;
mva #sfx_baby_missile sfx_effect
mwa xtraj+1 xtrajfb
mwa ytraj+1 ytrajfb
sbw ytraj+1 #$05 ytrajfb ; funky missiles start point goes 5 pixel UP to prevent multiple explosion at one point if tank is hit (4 pixels tank height + 1)
inc FallDown2
;central Explosion
mva #21 ExplosionRadius