Shooter fix
This commit is contained in:
@@ -80,11 +80,21 @@ AIRoutines
|
|||||||
beq firstShoot
|
beq firstShoot
|
||||||
|
|
||||||
lda PreviousAngle,x
|
lda PreviousAngle,x
|
||||||
|
cmp #90
|
||||||
|
bcs shootingLeftAtThisMomentOfTime
|
||||||
|
; shooting right at this moment of time
|
||||||
|
sec
|
||||||
|
sbc #5
|
||||||
|
cmp #10
|
||||||
|
bcs @+ ;not smaller than 10
|
||||||
|
bcc firstShoot ; GET THE aim againg
|
||||||
|
|
||||||
|
shootingLeftAtThisMomentOfTime
|
||||||
|
|
||||||
clc
|
clc
|
||||||
adc #5
|
adc #5
|
||||||
cmp #180
|
cmp #170 ; maximum shooter angle
|
||||||
bcc @+
|
bcs firstShoot
|
||||||
lda #0
|
|
||||||
@
|
@
|
||||||
sta NewAngle
|
sta NewAngle
|
||||||
|
|
||||||
@@ -93,7 +103,7 @@ AIRoutines
|
|||||||
sbc #5
|
sbc #5
|
||||||
sta ForceTableL,x
|
sta ForceTableL,x
|
||||||
lda PreviousEnergyH,x
|
lda PreviousEnergyH,x
|
||||||
sbc #0
|
sbc #0
|
||||||
sta ForceTableH,x
|
sta ForceTableH,x
|
||||||
jmp endo
|
jmp endo
|
||||||
|
|
||||||
|
|||||||
BIN
Binary file not shown.
Reference in New Issue
Block a user