mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-20 22:33:43 +02:00
Better Soildown after Hovercraft.
This commit is contained in:
BIN
Binary file not shown.
BIN
Binary file not shown.
+18
-19
@@ -2615,6 +2615,7 @@ ReachSky
|
|||||||
sta RangeRight+1
|
sta RangeRight+1
|
||||||
; hide tanks and ...
|
; hide tanks and ...
|
||||||
jsr SoilDown2
|
jsr SoilDown2
|
||||||
|
jsr ClearScreenSoilRange
|
||||||
ldx TankNr
|
ldx TankNr
|
||||||
|
|
||||||
; check keyboard/joy and move tank left/right - code copied from BeforeFire
|
; check keyboard/joy and move tank left/right - code copied from BeforeFire
|
||||||
@@ -2713,11 +2714,7 @@ RightScreenEdge
|
|||||||
mva #sfx_dunno sfx_effect
|
mva #sfx_dunno sfx_effect
|
||||||
NoREdge
|
NoREdge
|
||||||
mva #18 AngleTable,x
|
mva #18 AngleTable,x
|
||||||
; then draw tank on new position
|
bne DrawFloatingTank ; then draw tank on new position
|
||||||
jsr DrawTankNr
|
|
||||||
jsr DisplayStatus
|
|
||||||
jsr WaitOneFrame
|
|
||||||
jmp KeyboardAndJoyCheck
|
|
||||||
|
|
||||||
pressedLeft
|
pressedLeft
|
||||||
lda ShieldEnergy,x
|
lda ShieldEnergy,x
|
||||||
@@ -2744,9 +2741,11 @@ LeftScreenEdge
|
|||||||
NoLEdge
|
NoLEdge
|
||||||
mva #162 AngleTable,x
|
mva #162 AngleTable,x
|
||||||
; then draw tank on new position
|
; then draw tank on new position
|
||||||
|
DrawFloatingTank
|
||||||
jsr DrawTankNr
|
jsr DrawTankNr
|
||||||
jsr DisplayStatus
|
jsr DisplayStatus
|
||||||
jsr WaitOneFrame
|
jsr WaitOneFrame
|
||||||
|
jsr CalculateSoildown
|
||||||
jmp KeyboardAndJoyCheck
|
jmp KeyboardAndJoyCheck
|
||||||
|
|
||||||
pressedSpace
|
pressedSpace
|
||||||
@@ -2892,24 +2891,24 @@ OnGround
|
|||||||
jsr WaitForKeyRelease
|
jsr WaitForKeyRelease
|
||||||
; and Soildown at the end (for correct mountaintable)
|
; and Soildown at the end (for correct mountaintable)
|
||||||
; calculate range
|
; calculate range
|
||||||
sec
|
jsr CalculateSoildown
|
||||||
lda XtankstableL,x
|
|
||||||
sbc #2
|
|
||||||
sta RangeLeft
|
|
||||||
lda XtankstableH,x
|
|
||||||
sbc #0
|
|
||||||
sta RangeLeft+1
|
|
||||||
clc
|
|
||||||
lda XtankstableL,x
|
|
||||||
adc #10
|
|
||||||
sta RangeRight
|
|
||||||
lda XtankstableH,x
|
|
||||||
adc #0
|
|
||||||
sta RangeRight+1
|
|
||||||
; hide tanks and ...
|
; hide tanks and ...
|
||||||
jsr SoilDown2
|
jsr SoilDown2
|
||||||
ldx TankNr
|
ldx TankNr
|
||||||
rts
|
rts
|
||||||
|
|
||||||
|
CalculateSoildown
|
||||||
|
ldx TankNr
|
||||||
|
clc
|
||||||
|
lda XtankstableL,x
|
||||||
|
adc #4
|
||||||
|
sta xdraw
|
||||||
|
lda XtankstableH,x
|
||||||
|
adc #0
|
||||||
|
sta xdraw+1
|
||||||
|
mva #$04 ExplosionRadius
|
||||||
|
jsr CalculateExplosionRange
|
||||||
|
rts
|
||||||
.endp
|
.endp
|
||||||
|
|
||||||
; -------------------------------------------------
|
; -------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user