Final Shields fix

Now shields are draw ONLY in DrawTankNr proc.
This commit is contained in:
Pecusx
2022-07-27 18:01:33 +02:00
parent 02ff63d524
commit 47dcfa1af4
3 changed files with 29 additions and 18 deletions
+5 -5
View File
@@ -723,6 +723,11 @@ ZeroesToGo6
NoPlayerMissile
ldy #$01
lda Erase
beq @+
dey
@ sty color
; draw defensive weapons like shield ( tank number in X )
; in xdraw, ydraw we have coordinates left LOWER corner of Tank char
ldx TankNr
@@ -803,11 +808,6 @@ tankflash_loop
;
; this proc change xdraw, ydraw and temp!
;--------------------------------------------------
mva #1 color
lda erase
beq ShieldVisible
dec color
ShieldVisible
sbw xdraw #$03 ; 3 pixels to left
; draw left vertical line of shield ( | )
mva #6 temp ; strange !!!