Select and Option keys works in game

This commit is contained in:
Pecusx
2022-08-22 21:39:16 +02:00
parent 90eff39dda
commit 701aff0435
5 changed files with 18 additions and 6 deletions
+2 -2
View File
@@ -55,9 +55,9 @@ The status line shows which player is currently allowed to take a shot and a set
The keyboard controls here are simple, cursor keys or joystick: left/right - change the angle of the barrel, up/down - change the the force of the shot.
* [SPACE] or joystick button pressed briefly - firing a shot.
* [TAB] - selection of offensive weapons (this option is not available directly with the joystick - you need to select Inventory).
* [TAB] or [SELECT] - selection of offensive weapons (this option is not available directly with the joystick - you need to select Inventory).
* [I] or longer holding the joystick button - go to Inventory. It is a screen (actually two) with the same layout as the shopping menu, it also works similarly except that here you don't buy weapons, but choose one of the offensive ones to shoot or activate a defensive weapon.
* [A] - go directly to the defensive weapons activation.
* [A] or [OPTION] - go directly to the defensive weapons activation.
* [M] key - disable/enable background music.
* [S] key - disable/enable effect sounds.
* [START] - speed up some game animations.
+2 -2
View File
@@ -54,9 +54,9 @@ W linii statusowej widoczna jest informacja o tym który z graczy aktualnie moż
Tutaj klawiszologia jest prosta, klawisze kursora lub joystick: lewo/prawo - zmiana kąta nachylenia lufy, góra/dół - zmiana ustawienia siły strzału.
* [SPACJA] lub przycisk joysticka naciśnięte krótko - oddanie strzału
* [TAB] - wybór broni ofensywnej (ta opcja nie jest dostępna bezpośrednio joystickiem - trzeba wybrać Inventory)
* [TAB] lub [SELECT]- wybór broni ofensywnej (ta opcja nie jest dostępna bezpośrednio joystickiem - trzeba wybrać Inventory)
* Klawisz [I] lub dłuższe przytrzymanie przycisku joysticka - przejście do Inventory (aktywacji broni). Inventory to ekran (a w zasadzie dwa) bliźniaczo podobny do ekranu zakupów. Zasady poruszania się są identyczne z tym, że tu nie kupujemy broni, ale wybieramy jedną z ofensywnych, którą będziemy strzelać lub aktywujemy broń defensywną.
* Klawisz [A] - bezpośrednie przejście na ekran Inventory aktywacji broni defensywnych.
* Klawisz [A] lub [OPTION]- bezpośrednie przejście na ekran Inventory aktywacji broni defensywnych.
* Klawisz [M] - wyłączenie/włączenie muzyki w tle
* Klawisz [S] - wyłączenie/włączenie dźwięków efektów.
* Klawisz [O] - wymuszenie zakończenia gry (Game Over). W podsumowaniu wyników nie jest brana pod uwagę przerwana właśnie runda rozgrywki, a wyłącznie rundy zakończone wcześniej. Odpowiada to wciśnięciu klawisza [ESC] z tą różnicą, że wyświetlane jest podsumowanie oraz creditsy.
+5 -1
View File
@@ -1590,6 +1590,10 @@ getkeyend
lda SKSTAT
cmp #$ff
bne WaitForKeyRelease
lda CONSOL
and #%00000110 ; Select and Option only
cmp #%00000110
bne WaitForKeyRelease
rts
.endp
;--------------------------------------------------
@@ -1626,7 +1630,7 @@ noKey
.endp
.proc WaitOneFrame
lda CONSOL
cmp #6 ; START KEY
and #%00000001 ; START KEY
beq @+
wait
@ rts
BIN
View File
Binary file not shown.
+9 -1
View File
@@ -1182,6 +1182,14 @@ ContinueToCheckMaxForce2
; $f3 - shift+key
notpressed
; Select and Option
lda CONSOL
tay
and #%00000100
beq callActivation ; Option key
tya
and #%00000010
jeq pressedTAB ; Select key
lda SKSTAT
cmp #$ff
jeq checkJoy
@@ -2829,7 +2837,7 @@ GoDown
FloatDown
lda ytankstable,x
cmp FloatingAlt
beq OnGround
bcs OnGround
; first erase old tank position
mva #1 Erase
jsr DrawTankNr