Press A to defensives activate

This commit is contained in:
Pecusx
2022-08-21 23:05:45 +02:00
parent bd2239e434
commit f2ec211b52
2 changed files with 12 additions and 1 deletions
BIN
View File
Binary file not shown.
+12 -1
View File
@@ -1207,8 +1207,18 @@ notpressed
bpl notpressed bpl notpressed
;---esc pressed-quit game--- ;---esc pressed-quit game---
rts rts
@ @
cmp #$3f ; A
bne @+
callActivation
; Hide all tanks - after inventory they may have other shapes
mva #1 Erase
jsr DrawTanks
mva #0 Erase
jsr DefensivesActivate
jmp afterInventory
@
cmp #$0d ; I cmp #$0d ; I
bne @+ bne @+
callInventory callInventory
@@ -1219,6 +1229,7 @@ callInventory
; ;
mva #$ff isInventory mva #$ff isInventory
jsr Purchase jsr Purchase
afterInventory
mva #0 dmactls ; dark screen mva #0 dmactls ; dark screen
jsr WaitOneFrame jsr WaitOneFrame
lda #song_ingame lda #song_ingame