Selectable change of wind power (once per turn or round).
This commit is contained in:
+10
-2
@@ -26,10 +26,12 @@
|
|||||||
;---------------------------------------------------
|
;---------------------------------------------------
|
||||||
icl 'definitions.asm'
|
icl 'definitions.asm'
|
||||||
;---------------------------------------------------
|
;---------------------------------------------------
|
||||||
FirstZpageVariable = $5B
|
|
||||||
|
FirstZpageVariable = $5A
|
||||||
.zpvar DliColorBack .byte = FirstZpageVariable
|
.zpvar DliColorBack .byte = FirstZpageVariable
|
||||||
.zpvar GradientNr .byte
|
.zpvar GradientNr .byte
|
||||||
.zpvar GradientColors .word
|
.zpvar GradientColors .word
|
||||||
|
.zpvar WindChangeInRound .byte ; wind change after each turn (not round only) flag - (0 - round only, >0 - each turn)
|
||||||
.zpvar JoystickNumber .byte
|
.zpvar JoystickNumber .byte
|
||||||
.zpvar xdraw .word ;= $64 ;variable X for plot
|
.zpvar xdraw .word ;= $64 ;variable X for plot
|
||||||
.zpvar ydraw .word ;variable Y for plot (like in Atari Basic - Y=0 in upper right corner of the screen)
|
.zpvar ydraw .word ;variable Y for plot (like in Atari Basic - Y=0 in upper right corner of the screen)
|
||||||
@@ -883,8 +885,14 @@ NoPlayerNoDeath
|
|||||||
|
|
||||||
inc:lda TankSequencePointer
|
inc:lda TankSequencePointer
|
||||||
cmp NumberOfPlayers
|
cmp NumberOfPlayers
|
||||||
sne:mva #0 TankSequencePointer
|
bne NotLastPlayerInRound
|
||||||
|
mva #0 TankSequencePointer
|
||||||
|
|
||||||
|
lda WindChangeInRound
|
||||||
|
beq NoWindChangeNow
|
||||||
|
jsr GetRandomWind ; wind change after each turn (not round only)
|
||||||
|
NoWindChangeNow
|
||||||
|
NotLastPlayerInRound
|
||||||
jmp MainRoundLoop
|
jmp MainRoundLoop
|
||||||
.endp
|
.endp
|
||||||
|
|
||||||
|
|||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -63,6 +63,10 @@
|
|||||||
mva #0 OptionsY
|
mva #0 OptionsY
|
||||||
|
|
||||||
OptionsMainLoop
|
OptionsMainLoop
|
||||||
|
|
||||||
|
lda WindChangeInRound
|
||||||
|
sta OptionsHere+126
|
||||||
|
|
||||||
jsr OptionsInversion
|
jsr OptionsInversion
|
||||||
jsr getkey
|
jsr getkey
|
||||||
bit escFlag
|
bit escFlag
|
||||||
@@ -119,6 +123,14 @@ OptionsNoTab
|
|||||||
jmp OptionsMainLoop
|
jmp OptionsMainLoop
|
||||||
.endp
|
.endp
|
||||||
.proc SelectNextGradient
|
.proc SelectNextGradient
|
||||||
|
lda OptionsY ; if "Wind" option selected
|
||||||
|
cmp #$03
|
||||||
|
bne NotWind
|
||||||
|
lda WindChangeInRound ; wind change after each turn (not round only) flag
|
||||||
|
eor #$1f ; '?' character
|
||||||
|
sta WindChangeInRound
|
||||||
|
rts
|
||||||
|
NotWind
|
||||||
ldy GradientNr
|
ldy GradientNr
|
||||||
iny
|
iny
|
||||||
cpy #$03
|
cpy #$03
|
||||||
|
|||||||
Reference in New Issue
Block a user