mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-20 22:33:43 +02:00
angle 0 is great again
This commit is contained in:
+1
-1
@@ -2111,7 +2111,7 @@ YangleUnder90
|
|||||||
lda #0 ; all arithmetic to zero
|
lda #0 ; all arithmetic to zero
|
||||||
sta vx+1
|
sta vx+1
|
||||||
sta vy+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 fx
|
||||||
sta fy
|
sta fy
|
||||||
|
|
||||||
|
|||||||
BIN
Binary file not shown.
+3
-3
@@ -1310,9 +1310,9 @@ pressedRight
|
|||||||
mva #1 Erase
|
mva #1 Erase
|
||||||
jsr DrawTankNr.BarrelChange
|
jsr DrawTankNr.BarrelChange
|
||||||
dec:lda AngleTable,x
|
dec:lda AngleTable,x
|
||||||
cmp #0
|
cmp #255 ; -1
|
||||||
jne BeforeFire
|
jne BeforeFire
|
||||||
lda #179
|
lda #180
|
||||||
sta AngleTable,x
|
sta AngleTable,x
|
||||||
jmp BeforeFire
|
jmp BeforeFire
|
||||||
|
|
||||||
@@ -1327,7 +1327,7 @@ CTRLPressedRight
|
|||||||
sta AngleTable,x
|
sta AngleTable,x
|
||||||
cmp #4 ; smallest angle for speed rotating
|
cmp #4 ; smallest angle for speed rotating
|
||||||
jcs BeforeFire
|
jcs BeforeFire
|
||||||
lda #179
|
lda #180
|
||||||
sta AngleTable,x
|
sta AngleTable,x
|
||||||
jmp BeforeFire
|
jmp BeforeFire
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user