Improved checking collision with the tank.

And other optimizations.
This commit is contained in:
Pecusx
2022-06-02 15:01:49 +02:00
parent 9569b3365a
commit 0fbe3de569
3 changed files with 30 additions and 17 deletions
+8 -3
View File
@@ -242,8 +242,13 @@ CheckCollisionDraw
lda HitFlag
bne StopHitChecking
mwa xdraw temp
adw temp #mountaintable
clc
lda xdraw
adc #<mountaintable
sta temp
lda xdraw+1
adc #>mountaintable
sta temp+1
ldy #0
lda ydraw
@@ -255,7 +260,7 @@ CheckCollisionDraw
sec
sbc #1
sta YHit
mva #0 YHit+1
sty YHit+1
;mwa ydraw YHit
mva #1 HitFlag
StopHitChecking