mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-20 22:33:43 +02:00
Teams option only for 4 or 6 players
This commit is contained in:
+16
-1
@@ -103,6 +103,9 @@ OptionsNoUp
|
|||||||
cmp #@kbcode._left ; $6 ;cursor left
|
cmp #@kbcode._left ; $6 ;cursor left
|
||||||
bne OptionsNoLeft
|
bne OptionsNoLeft
|
||||||
ldx OptionsY
|
ldx OptionsY
|
||||||
|
bne NoPlayersOptL
|
||||||
|
jsr SelectNextGradient.TeamOff
|
||||||
|
NoPlayersOptL
|
||||||
dec OptionsTable,X
|
dec OptionsTable,X
|
||||||
lda OptionsTable,X
|
lda OptionsTable,X
|
||||||
bpl OptionsMainLoop
|
bpl OptionsMainLoop
|
||||||
@@ -112,8 +115,10 @@ OptionsNoUp
|
|||||||
OptionsNoLeft
|
OptionsNoLeft
|
||||||
cmp #@kbcode._right ; $7 ;cursor right
|
cmp #@kbcode._right ; $7 ;cursor right
|
||||||
bne OptionsNoRight
|
bne OptionsNoRight
|
||||||
|
|
||||||
ldx OptionsY
|
ldx OptionsY
|
||||||
|
bne NoPlayersOptR
|
||||||
|
jsr SelectNextGradient.TeamOff
|
||||||
|
NoPlayersOptR
|
||||||
inc OptionsTable,X
|
inc OptionsTable,X
|
||||||
lda OptionsTable,X
|
lda OptionsTable,X
|
||||||
cmp #5 ; number of columns in options
|
cmp #5 ; number of columns in options
|
||||||
@@ -142,8 +147,18 @@ OptionsNoTab
|
|||||||
.proc SelectNextGradient
|
.proc SelectNextGradient
|
||||||
lda OptionsY
|
lda OptionsY
|
||||||
bne NoTeamGame
|
bne NoTeamGame
|
||||||
|
lda OptionsTable ; OptionsY=0
|
||||||
|
cmp #$02 ; 4 players
|
||||||
|
beq TeamCorrect
|
||||||
|
cmp #$04 ; 6 players
|
||||||
|
beq TeamCorrect
|
||||||
|
TeamOff
|
||||||
|
lda #0
|
||||||
|
beq NoTeam
|
||||||
|
TeamCorrect
|
||||||
lda TeamGame
|
lda TeamGame
|
||||||
eor #$34 ; 'T' character
|
eor #$34 ; 'T' character
|
||||||
|
NoTeam
|
||||||
sta TeamGame
|
sta TeamGame
|
||||||
rts
|
rts
|
||||||
NoTeamGame
|
NoTeamGame
|
||||||
|
|||||||
BIN
Binary file not shown.
Reference in New Issue
Block a user