angle 0 is great again

This commit is contained in:
2022-11-12 10:58:37 -05:00
parent 36fc60d5af
commit 56f33a0ee9
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -2111,7 +2111,7 @@ YangleUnder90
lda #0 ; all arithmetic to zero
sta vx+1
sta vy+1
; lda #128 ; ; add 0.5 to fx and fy (not vx and vx) for better rounding - it's my opinion (Pecus)
lda #128 ; ; add 0.5 to fx and fy (not vx and vx) for better rounding - it's my opinion (Pecus)
sta fx
sta fy
BIN
View File
Binary file not shown.
+3 -3
View File
@@ -1310,9 +1310,9 @@ pressedRight
mva #1 Erase
jsr DrawTankNr.BarrelChange
dec:lda AngleTable,x
cmp #0
cmp #255 ; -1
jne BeforeFire
lda #179
lda #180
sta AngleTable,x
jmp BeforeFire
@@ -1327,7 +1327,7 @@ CTRLPressedRight
sta AngleTable,x
cmp #4 ; smallest angle for speed rotating
jcs BeforeFire
lda #179
lda #180
sta AngleTable,x
jmp BeforeFire