mirror of
https://github.com/pkali/scorch_src.git
synced 2026-05-21 06:39:46 +02:00
cosmetics
This commit is contained in:
@@ -2314,6 +2314,8 @@ CheckCollisionWithTankLoop
|
||||
cmp xdraw
|
||||
@
|
||||
bcs LeftFromTheTank ;add 8 double byte
|
||||
; now we use Y as low byte and A as high byte of checked position (right edge of tank)
|
||||
; it is tricky but fast and much shorter
|
||||
clc
|
||||
adc #8
|
||||
tay
|
||||
@@ -2341,6 +2343,8 @@ DeadTank
|
||||
bne CheckCollisionWithTankLoop
|
||||
rts
|
||||
CheckCollisionWithShieldedTank
|
||||
; now we use Y as low byte and A as high byte of checked position (left right edgs of shield)
|
||||
; it is tricky but fast and much shorter
|
||||
lda xtankstableL,x
|
||||
sec
|
||||
sbc #4 ; 5 pixels more on left side
|
||||
|
||||
Reference in New Issue
Block a user