Different shape of Heavy Shield

This commit is contained in:
Pecusx
2022-07-07 19:52:30 +02:00
parent 1998c98784
commit 2fecc8d630
2 changed files with 28 additions and 10 deletions
+28 -10
View File
@@ -684,11 +684,11 @@ NoPlayerMissile
; in xdraw, ydraw we have coordinates left LOWER corner of Tank char ; in xdraw, ydraw we have coordinates left LOWER corner of Tank char
lda ActiveDefenceWeapon,x lda ActiveDefenceWeapon,x
cmp #ind_Shield_________ ; one shot shield cmp #ind_Shield_________ ; one shot shield
beq ShieldDraw beq DrawTankShield
cmp #ind_Force_Shield___ ; shield with energy and parachute cmp #ind_Force_Shield___ ; shield with energy and parachute
beq ShieldDraw beq DrawTankShield
cmp #ind_Heavy_Shield___ ; shield with energy cmp #ind_Heavy_Shield___ ; shield with energy
beq ShieldDraw beq DrawTankShieldBold
cmp #ind_Auto_Defense___ ; Auto Defence cmp #ind_Auto_Defense___ ; Auto Defence
beq DrawTankShieldWihHorns beq DrawTankShieldWihHorns
cmp #ind_Mag_Deflector__ ; Mag Deflector cmp #ind_Mag_Deflector__ ; Mag Deflector
@@ -696,15 +696,14 @@ NoPlayerMissile
cmp #ind_White_Flag_____ ; White Flag cmp #ind_White_Flag_____ ; White Flag
beq DrawTankFlag beq DrawTankFlag
bne NoShieldDraw bne NoShieldDraw
ShieldDraw DrawTankShield
jsr DrawTankShield.DrawInPosition jmp DrawTankShield.DrawInPosition
NoShieldDraw
DoNotDrawTankNr
rts
DrawTankShieldWihHorns DrawTankShieldWihHorns
jsr DrawTankShield.DrawInPosition jsr DrawTankShield.DrawInPosition
jsr DrawTankShieldHorns jmp DrawTankShieldHorns
rts DrawTankShieldBold
jsr DrawTankShield.DrawInPosition
jmp DrawTankShieldBoldLine
DrawTankFlag DrawTankFlag
lda #$5E ; flag symbol lda #$5E ; flag symbol
sta CharCode sta CharCode
@@ -717,6 +716,8 @@ DrawTankFlag
lda XtanksTableH,x lda XtanksTableH,x
sta xdraw+1 sta xdraw+1
jsr TypeChar jsr TypeChar
NoShieldDraw
DoNotDrawTankNr
rts rts
.endp .endp
@@ -823,6 +824,23 @@ ShieldVisible
jsr plot jsr plot
rts rts
.endp .endp
;--------------------------------------------------
.proc DrawTankShieldBoldLine
; use only directly after DrawTankShield
; this proc draws bold top on shield.
; Symbol of ablative shield ? :)
;--------------------------------------------------
sbw xdraw #$04 ; 5 pixels left
sbw ydraw #$0a ; 10 pixels up
; draw additional top horizontal line of shield ( _ )
mva #6 temp
@
jsr plot
.nowarn dew xdraw
dec temp
bne @-
rts
.endp
;-------------------------------------------------- ;--------------------------------------------------
.proc drawmountains .proc drawmountains
BIN
View File
Binary file not shown.