mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-21 21:34:20 +02:00
FunkyBomb and LeapFrog bugfix #89
Problem was due to the better accuracy of the collision with tank check procedure.
This commit is contained in:
BIN
Binary file not shown.
+3
-1
@@ -130,6 +130,7 @@ VOID
|
|||||||
mva LeapFrogAngle Angle
|
mva LeapFrogAngle Angle
|
||||||
|
|
||||||
mva #sfx_funky_hit sfx_effect
|
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
|
jsr Flight
|
||||||
lda HitFlag
|
lda HitFlag
|
||||||
beq EndOfLeapping
|
beq EndOfLeapping
|
||||||
@@ -159,6 +160,7 @@ VOID
|
|||||||
ror Force
|
ror Force
|
||||||
mva LeapFrogAngle Angle
|
mva LeapFrogAngle Angle
|
||||||
mva #sfx_funky_hit sfx_effect
|
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
|
jsr Flight
|
||||||
lda HitFlag
|
lda HitFlag
|
||||||
beq EndOfLeapping
|
beq EndOfLeapping
|
||||||
@@ -178,7 +180,7 @@ EndOfLeapping
|
|||||||
.proc funkybomb ;
|
.proc funkybomb ;
|
||||||
mva #sfx_baby_missile sfx_effect
|
mva #sfx_baby_missile sfx_effect
|
||||||
mwa xtraj+1 xtrajfb
|
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
|
inc FallDown2
|
||||||
;central Explosion
|
;central Explosion
|
||||||
mva #21 ExplosionRadius
|
mva #21 ExplosionRadius
|
||||||
|
|||||||
Reference in New Issue
Block a user