Exit optimizations and better delay for C64

This commit is contained in:
Pecusx
2023-05-19 10:24:25 +02:00
parent f6a7217114
commit eb15ce0d78
7 changed files with 25 additions and 41 deletions
+9 -9
View File
@@ -43,8 +43,8 @@ MainGameLoop
jsr MainRoundLoop
bit escFlag
bmi START
jvs GoGameOver
bmi START
jsr CalculateGains
@@ -369,8 +369,8 @@ RoboTanks
cmp #@kbcode._esc ; 28 ; ESC
bne @+
jsr AreYouSure
@ lda escFlag
seq:rts ; keys Esc or O
@ bit escFlag
spl:rts ; keys Esc or O
jmp AfterManualShooting
@@ -382,8 +382,8 @@ ManualShooting
lda #%00000000
sta TestFlightFlag ; set "Test Fight" off
jsr BeforeFire
lda escFlag
seq:rts ; keys Esc or O
bit escFlag
spl:rts ; keys Esc or O
AfterManualShooting
mva #$00 plot4x4color
@@ -410,8 +410,8 @@ GoFloat
jsr TankFlying
lda #0
sta ActiveDefenceWeapon,x ; deactivate after use
lda escFlag
beq ManualShooting ; after floating tank can shoot
bit escFlag
bpl ManualShooting ; after floating tank can shoot
rts
StandardShoot
inc noDeathCounter
@@ -429,8 +429,8 @@ ShootNow
mva #$00 plot4x4color
jsr DisplayOffensiveTextNr
lda escFlag
seq:rts ; keys Esc or O
bit escFlag
spl:rts ; keys Esc or O
lda HitFlag ;0 if missed
beq missed