mirror of
https://github.com/pkali/scorch_src.git
synced 2026-05-21 06:39:46 +02:00
Punch checks screen edges
This commit is contained in:
BIN
Binary file not shown.
+17
-4
@@ -1075,7 +1075,6 @@ EndOfTheDirt
|
|||||||
@ jsr ClearTankNr
|
@ jsr ClearTankNr
|
||||||
inc ytankstable,x
|
inc ytankstable,x
|
||||||
jsr PutTankNr
|
jsr PutTankNr
|
||||||
jsr PutTankNr
|
|
||||||
dec ExplosionRadius
|
dec ExplosionRadius
|
||||||
bne @-
|
bne @-
|
||||||
|
|
||||||
@@ -1122,17 +1121,31 @@ RightSide
|
|||||||
bmi PunchLeft
|
bmi PunchLeft
|
||||||
PunchRight
|
PunchRight
|
||||||
jsr ClearTankNr
|
jsr ClearTankNr
|
||||||
|
lda XtanksTableH,x
|
||||||
|
cmp #>(screenwidth-TankWidth-2) ; 2 pixels correction due to a barrel wider than tank
|
||||||
|
bne @+
|
||||||
|
lda XtanksTableL,x
|
||||||
|
cmp #<(screenwidth-TankWidth-2) ; 2 pixels correction due to a barrel wider than tank
|
||||||
|
@ bcs RightEdge
|
||||||
inc xtankstableL,x
|
inc xtankstableL,x
|
||||||
bne @+
|
bne @+
|
||||||
inc xtankstableH,x
|
inc xtankstableH,x
|
||||||
|
RightEdge
|
||||||
@ jsr PutTankNr
|
@ jsr PutTankNr
|
||||||
jmp TankPunched
|
jmp TankPunched
|
||||||
PunchLeft
|
PunchLeft
|
||||||
jsr ClearTankNr
|
jsr ClearTankNr
|
||||||
|
lda XtanksTableH,x
|
||||||
|
bne NotLeftEdge
|
||||||
|
lda XtanksTableL,x
|
||||||
|
cmp #3 ; 2 pixels correction due to a barrel wider than tank
|
||||||
|
bcc LeftEdge
|
||||||
|
NotLeftEdge
|
||||||
lda xtankstableL,x
|
lda xtankstableL,x
|
||||||
bne @+
|
bne @+
|
||||||
dec xtankstableH,x
|
dec xtankstableH,x
|
||||||
@ dec xtankstableL,x
|
@ dec xtankstableL,x
|
||||||
|
LeftEdge
|
||||||
jsr PutTankNr
|
jsr PutTankNr
|
||||||
TankPunched
|
TankPunched
|
||||||
plx
|
plx
|
||||||
@@ -1142,10 +1155,10 @@ TooFar
|
|||||||
NotMy
|
NotMy
|
||||||
DeadTank
|
DeadTank
|
||||||
dey
|
dey
|
||||||
bpl CheckingNextTank
|
jpl CheckingNextTank
|
||||||
jsr WaitOneFrame
|
;jsr WaitOneFrame
|
||||||
sbb ExplosionRadius #2
|
sbb ExplosionRadius #2
|
||||||
bne CheckRange
|
jne CheckRange
|
||||||
rts
|
rts
|
||||||
.endp
|
.endp
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user