Shields fix

This commit is contained in:
Pecusx
2022-07-27 13:44:20 +02:00
parent 2c3b4d148e
commit 9b42e79b61
2 changed files with 18 additions and 17 deletions
+18 -17
View File
@@ -722,20 +722,13 @@ ZeroesToGo6
bne ClearPM6 bne ClearPM6
NoPlayerMissile NoPlayerMissile
BarrelChange
ldy #$01
lda Erase
beq @+
dey
@ sty color
jsr DrawBarrel
; draw defensive weapons like shield ( tank number in X ) ; draw defensive weapons like shield ( tank number in X )
; in xdraw, ydraw we have coordinates left LOWER corner of Tank char ; in xdraw, ydraw we have coordinates left LOWER corner of Tank char
ldx TankNr ldx TankNr
lda ActiveDefenceWeapon,x lda ActiveDefenceWeapon,x
cmp #ind_Shield_________ ; one shot shield cmp #ind_Shield_________ ; one shot shield
beq DrawTankShield beq DrawTankSh
cmp #ind_Force_Shield___ ; shield with energy and parachute cmp #ind_Force_Shield___ ; shield with energy and parachute
beq DrawTankShieldBold beq DrawTankShieldBold
cmp #ind_Heavy_Shield___ ; shield with energy cmp #ind_Heavy_Shield___ ; shield with energy
@@ -747,14 +740,17 @@ BarrelChange
cmp #ind_White_Flag_____ ; White Flag cmp #ind_White_Flag_____ ; White Flag
beq DrawTankFlag beq DrawTankFlag
bne NoShieldDraw bne NoShieldDraw
DrawTankShield DrawTankSh
jmp DrawTankShield.DrawInPosition jsr DrawTankShield
jmp NoShieldDraw
DrawTankShieldWihHorns DrawTankShieldWihHorns
jsr DrawTankShield.DrawInPosition jsr DrawTankShield
jmp DrawTankShieldHorns jsr DrawTankShieldHorns
jmp NoShieldDraw
DrawTankShieldBold DrawTankShieldBold
jsr DrawTankShield.DrawInPosition jsr DrawTankShield
jmp DrawTankShieldBoldLine jsr DrawTankShieldBoldLine
jmp NoShieldDraw
DrawTankFlag DrawTankFlag
lda #$5E ; flag symbol lda #$5E ; flag symbol
sta CharCode sta CharCode
@@ -762,9 +758,16 @@ DrawTankFlag
sec sec
sbc #8 sbc #8
sta ydraw sta ydraw
jsr SetupXYdraw.X
jsr TypeChar jsr TypeChar
NoShieldDraw NoShieldDraw
BarrelChange
ldy #$01
lda Erase
beq @+
dey
@ sty color
jsr DrawBarrel
ldx TankNr
DoNotDrawTankNr DoNotDrawTankNr
rts rts
.endp .endp
@@ -800,8 +803,6 @@ tankflash_loop
; ;
; this proc change xdraw, ydraw and temp! ; this proc change xdraw, ydraw and temp!
;-------------------------------------------------- ;--------------------------------------------------
jsr SetupXYdraw
DrawInPosition
mva #1 color mva #1 color
lda erase lda erase
beq ShieldVisible beq ShieldVisible
BIN
View File
Binary file not shown.