Tank Hit fix

And TankWidth as variable (definition).
This commit is contained in:
Pecusx
2022-09-02 23:38:56 +02:00
parent dc9c724521
commit 13e15426fc
4 changed files with 13 additions and 10 deletions
+2 -2
View File
@@ -1137,10 +1137,10 @@ FallingRight
bvs EndRightFall
; we finish falling right if the tank reached the edge of the screen
lda XtanksTableH,x
cmp #>(screenwidth-8-2) ; 2 pixels correction due to a barrel wider than tank
cmp #>(screenwidth-TankWidth-2) ; 2 pixels correction due to a barrel wider than tank
bne @+
lda XtanksTableL,x
cmp #<(screenwidth-8-2) ; 2 pixels correction due to a barrel wider than tank
cmp #<(screenwidth-TankWidth-2) ; 2 pixels correction due to a barrel wider than tank
@ bcs EndRightFall
NotRightEdge
; tank is falling right - modify coorinates