New weapon (Punch) and optimization

This commit is contained in:
Pecusx
2023-05-29 14:50:50 +02:00
parent 2026313585
commit 3f4c941f6f
4 changed files with 139 additions and 14 deletions
+11 -6
View File
@@ -420,18 +420,23 @@ StandardShoot
dec Energy,x ; lower energy to eventually let tanks commit suicide
ShootNow
jsr Shoot
;here we clear offensive text (after a shoot)
ldy TankNr
mva #$00 plot4x4color
jsr DisplayOffensiveTextNr
lda ActiveWeapon,x
cmp #ind_Buy_me ; BFG
beq WeponNoFlight ; but with explosion
cmp #ind_Baby_Sandhog ; Punch
beq WeponNoFlight ; but with explosion
jsr Shoot ; bullet flight
bit escFlag
spl:rts ; keys Esc or O
lda HitFlag ;0 if missed
beq missed
bne GoExplosion
WeponNoFlight
jsr NoShoot ; no bullet flight
GoExplosion
jsr Explosion
continueMainRoundLoopAfterSeppuku