mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-20 22:33:43 +02:00
AI aiming with barrel animation and sound
This commit is contained in:
@@ -780,6 +780,11 @@ SetStartAndFlight ; set start point (virtual barrel end :) ) and make test fl
|
|||||||
sta ytraj+1
|
sta ytraj+1
|
||||||
mva #0 ytraj+2
|
mva #0 ytraj+2
|
||||||
mva NewAngle Angle
|
mva NewAngle Angle
|
||||||
|
lda CONSOL
|
||||||
|
and #%00000001 ; START KEY
|
||||||
|
beq @speedup
|
||||||
|
jsr MoveBarrelToNewPosition
|
||||||
|
@speedup
|
||||||
jsr Flight
|
jsr Flight
|
||||||
ldx TankNr
|
ldx TankNr
|
||||||
rts
|
rts
|
||||||
|
|||||||
@@ -1027,7 +1027,10 @@ MoveBarrel
|
|||||||
ldx TankNr
|
ldx TankNr
|
||||||
;
|
;
|
||||||
mva #1 Erase
|
mva #1 Erase
|
||||||
|
bit TestFlightFlag
|
||||||
|
bmi AIaim
|
||||||
jsr WaitOneFrame
|
jsr WaitOneFrame
|
||||||
|
AIaim
|
||||||
jsr DrawTankNr.BarrelChange
|
jsr DrawTankNr.BarrelChange
|
||||||
mva #0 Erase
|
mva #0 Erase
|
||||||
lda NewAngle
|
lda NewAngle
|
||||||
|
|||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user