mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-20 22:33:43 +02:00
The first attempt at handling defensive weapons
Only for test. Now all players has active Parachute berore round.
This commit is contained in:
+10
-1
@@ -128,7 +128,16 @@ START
|
|||||||
|
|
||||||
jsr RandomizeSequence
|
jsr RandomizeSequence
|
||||||
; for the round #1 shooting sequence is random
|
; for the round #1 shooting sequence is random
|
||||||
|
|
||||||
|
; activate parachutes for all players (test)
|
||||||
|
lda #$35
|
||||||
|
ldx numberOfPlayers
|
||||||
|
dex
|
||||||
|
@
|
||||||
|
sta ActiveDefenceWeapon,x
|
||||||
|
dex
|
||||||
|
bpl @-
|
||||||
|
; parachutes activated! (test)
|
||||||
MainGameLoop
|
MainGameLoop
|
||||||
VDLI DLIinterruptText ; jsr SetDLI for text (purchase) screen
|
VDLI DLIinterruptText ; jsr SetDLI for text (purchase) screen
|
||||||
|
|
||||||
|
|||||||
BIN
Binary file not shown.
@@ -95,6 +95,8 @@ NewAngle .DS 1
|
|||||||
|
|
||||||
ActiveWeapon ;number of the selected weapon
|
ActiveWeapon ;number of the selected weapon
|
||||||
.DS [MaxPlayers]
|
.DS [MaxPlayers]
|
||||||
|
ActiveDefenceWeapon ;number of the activated defence weapon - 0
|
||||||
|
.DS [MaxPlayers]
|
||||||
WeaponDepleted .DS 1 ; if 0 deactivate the weapon and switch to Baby Missile
|
WeaponDepleted .DS 1 ; if 0 deactivate the weapon and switch to Baby Missile
|
||||||
;----------------------------------------------------
|
;----------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
+5
-7
@@ -1298,9 +1298,10 @@ ShotUnderGround
|
|||||||
sta Parachute
|
sta Parachute
|
||||||
|
|
||||||
; let's check if the given tank has got the parachute
|
; let's check if the given tank has got the parachute
|
||||||
lda #$35 ; parachute
|
ldx TankNr
|
||||||
jsr HowManyBullets
|
lda ActiveDefenceWeapon,x
|
||||||
beq TankFallsX
|
cmp #$35 ; parachute
|
||||||
|
bne TankFallsX
|
||||||
inc Parachute
|
inc Parachute
|
||||||
TankFallsX
|
TankFallsX
|
||||||
; coordinates of the first pixel under the tank
|
; coordinates of the first pixel under the tank
|
||||||
@@ -1502,6 +1503,7 @@ EndOfFall
|
|||||||
; first we clear parachute on the screen
|
; first we clear parachute on the screen
|
||||||
mva #1 Erase
|
mva #1 Erase
|
||||||
ldx TankNr
|
ldx TankNr
|
||||||
|
mva #0 ActiveDefenceWeapon,x ; deactivate defence weapon (parachute)
|
||||||
lda #$34
|
lda #$34
|
||||||
sta CharCode
|
sta CharCode
|
||||||
lda Ytankstable,x
|
lda Ytankstable,x
|
||||||
@@ -1514,10 +1516,6 @@ EndOfFall
|
|||||||
sta xdraw+1
|
sta xdraw+1
|
||||||
jsr TypeChar
|
jsr TypeChar
|
||||||
mva #0 Erase
|
mva #0 Erase
|
||||||
; now we can deduct one parachute from the list of weapons
|
|
||||||
|
|
||||||
lda #$35 ; parachute
|
|
||||||
jsr DecreaseWeapon
|
|
||||||
ThereWasNoParachute
|
ThereWasNoParachute
|
||||||
mva #sfx_silencer sfx_effect
|
mva #sfx_silencer sfx_effect
|
||||||
rts
|
rts
|
||||||
|
|||||||
Reference in New Issue
Block a user