Shooter fix

This commit is contained in:
2022-07-03 14:01:51 -04:00
parent 3fb83583c3
commit 97c01d2c61
2 changed files with 14 additions and 4 deletions
+14 -4
View File
@@ -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
View File
Binary file not shown.