mirror of
https://github.com/pkali/scorch_src.git
synced 2026-05-20 22:34:21 +02:00
Teams colors added
This commit is contained in:
+18
-10
@@ -361,6 +361,10 @@ GoToActivation
|
|||||||
|
|
||||||
ldx tankNr
|
ldx tankNr
|
||||||
lda TankStatusColoursTable,x
|
lda TankStatusColoursTable,x
|
||||||
|
bit TeamGame
|
||||||
|
bvc NoTeamColors
|
||||||
|
lda TankStatusColoursTableT,x
|
||||||
|
NoTeamColors
|
||||||
sta COLOR2
|
sta COLOR2
|
||||||
|
|
||||||
; there is a tank (player) number in tanknr
|
; there is a tank (player) number in tanknr
|
||||||
@@ -1101,16 +1105,20 @@ loop sta (temp2),y
|
|||||||
|
|
||||||
mva #0 TankNr
|
mva #0 TankNr
|
||||||
sta COLBAKS ; set color of background
|
sta COLBAKS ; set color of background
|
||||||
@ tax
|
@ tax
|
||||||
lda TankStatusColoursTable,x
|
lda TankStatusColoursTable,x
|
||||||
sta COLOR2 ; set color of player name line
|
bit TeamGame
|
||||||
jsr EnterPlayerName
|
bvc NoTeamColors
|
||||||
bit escFlag
|
lda TankStatusColoursTableT,x
|
||||||
spl:rts
|
NoTeamColors
|
||||||
jsr CheckTankCheat
|
sta COLOR2 ; set color of player name line
|
||||||
inc TankNr
|
jsr EnterPlayerName
|
||||||
lda TankNr
|
bit escFlag
|
||||||
cmp NumberOfPlayers
|
spl:rts
|
||||||
|
jsr CheckTankCheat
|
||||||
|
inc TankNr
|
||||||
|
lda TankNr
|
||||||
|
cmp NumberOfPlayers
|
||||||
bne @-
|
bne @-
|
||||||
rts
|
rts
|
||||||
.endp
|
.endp
|
||||||
|
|||||||
@@ -74,8 +74,10 @@ Team_Header
|
|||||||
dta d"A-Team" ; :)
|
dta d"A-Team" ; :)
|
||||||
|
|
||||||
TankColoursTable .BYTE $58,$2a,$96,$ca,$7a,$ed
|
TankColoursTable .BYTE $58,$2a,$96,$ca,$7a,$ed
|
||||||
|
TankColoursTableT .BYTE $2a,$2a,$7a,$7a,$2a,$7a ; Teams colors
|
||||||
;TankStatusColoursTable .BYTE $54,$24,$92,$c4,$74,$e4 ; standard order
|
;TankStatusColoursTable .BYTE $54,$24,$92,$c4,$74,$e4 ; standard order
|
||||||
TankStatusColoursTable .BYTE $74,$c4,$24,$e4,$54,$94 ; Adam's order
|
TankStatusColoursTable .BYTE $74,$c4,$24,$e4,$54,$94 ; Adam's order
|
||||||
|
TankStatusColoursTableT .BYTE $24,$74,$24,$74,$24,$74 ; Teams colors
|
||||||
;-----------
|
;-----------
|
||||||
GradientAddrL
|
GradientAddrL
|
||||||
.by <dliColorsFore, <dliColorsFore, <dliColorsFore2
|
.by <dliColorsFore, <dliColorsFore, <dliColorsFore2
|
||||||
|
|||||||
@@ -363,6 +363,10 @@ CheckNextTankAD
|
|||||||
|
|
||||||
ldx tankNr
|
ldx tankNr
|
||||||
lda TankStatusColoursTable,x
|
lda TankStatusColoursTable,x
|
||||||
|
bit TeamGame
|
||||||
|
bvc NoTeamColors
|
||||||
|
lda TankStatusColoursTableT,x
|
||||||
|
NoTeamColors
|
||||||
sta COLOR2 ; set color of status line
|
sta COLOR2 ; set color of status line
|
||||||
jsr RandomizeForce.LimitForce
|
jsr RandomizeForce.LimitForce
|
||||||
jsr PutTankNameOnScreen
|
jsr PutTankNameOnScreen
|
||||||
|
|||||||
@@ -2008,6 +2008,10 @@ ybarrel
|
|||||||
@ lda #$00
|
@ lda #$00
|
||||||
sta sizep0,y ; P0-P3 widths
|
sta sizep0,y ; P0-P3 widths
|
||||||
lda TankColoursTable,y ; colours of sprites under tanks
|
lda TankColoursTable,y ; colours of sprites under tanks
|
||||||
|
bit TeamGame
|
||||||
|
bvc no_team
|
||||||
|
lda TankColoursTableT,y ; colours of sprites under tanks for Teams
|
||||||
|
no_team
|
||||||
sta PCOLR0,y
|
sta PCOLR0,y
|
||||||
dey
|
dey
|
||||||
bpl @-
|
bpl @-
|
||||||
|
|||||||
BIN
Binary file not shown.
Reference in New Issue
Block a user