mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-20 22:33:43 +02:00
White Flag works!
This commit is contained in:
+5
-5
@@ -587,20 +587,20 @@ UnequalTanks
|
|||||||
;-------------------------------------------------
|
;-------------------------------------------------
|
||||||
.proc drawtanks
|
.proc drawtanks
|
||||||
;-------------------------------------------------
|
;-------------------------------------------------
|
||||||
lda tanknr
|
lda TankNr
|
||||||
pha
|
pha
|
||||||
ldx #$00
|
ldx #$00
|
||||||
stx tanknr
|
stx TankNr
|
||||||
|
|
||||||
DrawNextTank
|
DrawNextTank
|
||||||
jsr drawtanknr
|
jsr drawtanknr
|
||||||
inc tanknr
|
inc TankNr
|
||||||
ldx tanknr
|
ldx TankNr
|
||||||
Cpx NumberOfPlayers
|
Cpx NumberOfPlayers
|
||||||
bne DrawNextTank
|
bne DrawNextTank
|
||||||
|
|
||||||
pla
|
pla
|
||||||
sta tankNr
|
sta TankNr
|
||||||
|
|
||||||
rts
|
rts
|
||||||
.endp
|
.endp
|
||||||
|
|||||||
+21
-2
@@ -413,6 +413,27 @@ ManualShooting
|
|||||||
seq:rts
|
seq:rts
|
||||||
|
|
||||||
AfterManualShooting
|
AfterManualShooting
|
||||||
|
; White Flag handling
|
||||||
|
ldx TankNr
|
||||||
|
lda ActiveDefenceWeapon,x
|
||||||
|
cmp #ind_White_Flag_____ ; White Flag
|
||||||
|
bne StandardShoot
|
||||||
|
; --- white flag ---
|
||||||
|
mva #sfx_death_begin sfx_effect
|
||||||
|
jsr FlashTank ; first we flash tank
|
||||||
|
mva #1 Erase
|
||||||
|
jsr DrawTankNr ; and erase tank
|
||||||
|
mva #0 Erase
|
||||||
|
ldx TankNr
|
||||||
|
sta Energy,x ; clear tan energy
|
||||||
|
sta eXistenZ,x ; erase from existence
|
||||||
|
sta LASTeXistenZ,x ; to prevent explosion
|
||||||
|
sta ActiveDefenceWeapon,x ; deactivate White Flag
|
||||||
|
jsr PMoutofScreen
|
||||||
|
jsr drawtanks ; for restore PM
|
||||||
|
; --- white flag end ---
|
||||||
|
jmp NextPlayerShoots ; and we skip shoot
|
||||||
|
StandardShoot
|
||||||
inc noDeathCounter
|
inc noDeathCounter
|
||||||
|
|
||||||
jsr DecreaseWeaponBeforeShoot
|
jsr DecreaseWeaponBeforeShoot
|
||||||
@@ -453,10 +474,8 @@ AfterExplode
|
|||||||
@
|
@
|
||||||
|
|
||||||
;temporary tanks removal (would fall down with soil)
|
;temporary tanks removal (would fall down with soil)
|
||||||
mva TankNr tempor2
|
|
||||||
mva #1 Erase
|
mva #1 Erase
|
||||||
jsr drawtanks
|
jsr drawtanks
|
||||||
mva tempor2 TankNr
|
|
||||||
mva #0 Erase
|
mva #0 Erase
|
||||||
lda FallDown2
|
lda FallDown2
|
||||||
beq NoFallDown2
|
beq NoFallDown2
|
||||||
|
|||||||
BIN
Binary file not shown.
Reference in New Issue
Block a user