Display active joystick on weapon purchase/activation screens and game screen.

This commit is contained in:
Pecusx
2022-12-01 15:23:39 +01:00
parent 8c6fee0631
commit c7e65f1d61
7 changed files with 20 additions and 8 deletions
+1
View File
@@ -52,6 +52,7 @@ Another [RETURN] key or joystick button press switches to the next player's shop
The status line shows which player is currently allowed to take a shot and a set of other information: The status line shows which player is currently allowed to take a shot and a set of other information:
* player's tank name, * player's tank name,
* active joystick number
* currently selected offensive weapon, * currently selected offensive weapon,
* the player's remaining energy points and if he has an active defensive weapon that has its energy - in parentheses the energy level, * the player's remaining energy points and if he has an active defensive weapon that has its energy - in parentheses the energy level,
* the angle and the direction of the barrel set by the player, * the angle and the direction of the barrel set by the player,
+1
View File
@@ -51,6 +51,7 @@ Klawisz [RETURN] lub przycisk joysticka przechodzi do ekranu zakupów następneg
W linii statusowej widoczna jest informacja o tym który z graczy aktualnie może oddać strzał oraz zestaw innych informacji: W linii statusowej widoczna jest informacja o tym który z graczy aktualnie może oddać strzał oraz zestaw innych informacji:
* nazwa czołgu gracza * nazwa czołgu gracza
* numer aktywnego joysticka
* wybrana aktualnie broń ofensywna * wybrana aktualnie broń ofensywna
* pozostała ilość punktów energii gracza i jeśli ma on aktywną broń defensywną posiadającą swój zasób energii - w nawiasie ten zasób * pozostała ilość punktów energii gracza i jeśli ma on aktywną broń defensywną posiadającą swój zasób energii - w nawiasie ten zasób
* ustawiony przez gracza kąt nachylenia lufy i kierunek jej nachylenia * ustawiony przez gracza kąt nachylenia lufy i kierunek jej nachylenia
+1 -1
View File
@@ -3,7 +3,7 @@
.IF *>0 ;this is a trick that prevents compiling this file alone .IF *>0 ;this is a trick that prevents compiling this file alone
;--------------------------------------------------- ;---------------------------------------------------
purchaseTextBuffer purchaseTextBuffer
dta d"Player: Cash: 0" ; ZERO TO MAKE YOU RICHER ON THE SCREEN dta d"Player: * Cash: 0" ; ZERO TO MAKE YOU RICHER ON THE SCREEN
; DLs fragments (modified by game code) ; DLs fragments (modified by game code)
; all Purchase DL :) ; all Purchase DL :)
+1 -1
View File
@@ -4,7 +4,7 @@
statusBuffer statusBuffer
; 0123456789012345678901234567890123456789 ; 0123456789012345678901234567890123456789
dta d"Player: " dta d"Player: * "
dta d"Energy: Angle: Force: " dta d"Energy: Angle: Force: "
dta d"Round: Wind: " dta d"Round: Wind: "
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+16 -6
View File
@@ -329,11 +329,16 @@ GoToActivation
tax tax
NextChar03 NextChar03
lda tanksnames,x lda tanksnames,x
sta purchaseTextBuffer+8,y sta purchaseTextBuffer+7,y
inx inx
iny iny
cpy #$08 cpy #$08
bne NextChar03 bne NextChar03
; displaying number of active controller port
ldy JoystickNumber
lda digits+1,y
sta purchaseTextBuffer+17
; and we display cash of the given player ; and we display cash of the given player
; here we must jump in after each purchase ; here we must jump in after each purchase
@@ -1730,8 +1735,9 @@ DOTOldLowestValue
sbw temp LineAddress4x4 temp2 sbw temp LineAddress4x4 temp2
mva temp2 fx mva temp2 fx
jsr Display4x4AboveTank ;jsr Display4x4AboveTank
rts ;rts
; POZOR !!!
.endp .endp
;-------------------------------------------------------- ;--------------------------------------------------------
@@ -2322,6 +2328,10 @@ EndOfCredits
.proc DisplayStatus .proc DisplayStatus
;------------------------------------------------- ;-------------------------------------------------
; displaying number of active controller port
ldy JoystickNumber
lda digits+1,y
sta statusBuffer+17
;--------------------- ;---------------------
;displaying symbol of the weapon ;displaying symbol of the weapon
;--------------------- ;---------------------
@@ -2332,7 +2342,7 @@ EndOfCredits
ldx TankNr ldx TankNr
ldy ActiveWeapon,x ldy ActiveWeapon,x
lda WeaponSymbols,y lda WeaponSymbols,y
sta statusBuffer+18 sta statusBuffer+19
;--------------------- ;---------------------
;displaying quantity of the given weapon ;displaying quantity of the given weapon
@@ -2340,7 +2350,7 @@ EndOfCredits
lda ActiveWeapon,x lda ActiveWeapon,x
jsr HowManyBullets jsr HowManyBullets
sta decimal sta decimal
mwa #statusBuffer+20 displayposition mwa #statusBuffer+21 displayposition
jsr displaybyte jsr displaybyte
;--------------------- ;---------------------
@@ -2361,7 +2371,7 @@ EndOfCredits
ldy #15 ldy #15
@ @
lda (temp),y lda (temp),y
sta statusBuffer+23,y sta statusBuffer+24,y
dey dey
bpl @- bpl @-