Index of hit tank in HitFlag

For future use.
Easier to check whether the hit tank or ground.
This commit is contained in:
Pecusx
2022-06-09 18:06:31 +02:00
parent 53e9f89012
commit 1b983b8d92
4 changed files with 11 additions and 10 deletions
+3 -4
View File
@@ -262,8 +262,7 @@ CheckCollisionDraw
sbc #1
sta YHit
sty YHit+1
;mwa ydraw YHit
mva #1 HitFlag
mva #$ff HitFlag
StopHitChecking
jmp ContinueDraw
@
@@ -798,10 +797,10 @@ ShieldVisible
; this proc draws a little "horns" on shield.
; Symbol of defensive but aggressive :) weapon
;--------------------------------------------------
dew xdraw ; 1 pixel left
.nowarn dew xdraw ; 1 pixel left
sbw ydraw #$0a ; 10 pixels up
jsr plot
dew ydraw
.nowarn dew ydraw
inw xdraw
jsr plot
sbw xdraw #$0d ; 13 pixels left