mirror of
https://github.com/pkali/scorch_src.git
synced 2026-05-20 22:34:21 +02:00
SoilDownTurbo fixed, and added as option in Main Menu
This commit is contained in:
+3
-1
@@ -198,7 +198,6 @@ ClearPlot
|
|||||||
|
|
||||||
drawmountainsloop
|
drawmountainsloop
|
||||||
jsr DrawMountainLine
|
jsr DrawMountainLine
|
||||||
NoMountain
|
|
||||||
inw modify
|
inw modify
|
||||||
inw xdraw
|
inw xdraw
|
||||||
cpw xdraw #screenwidth
|
cpw xdraw #screenwidth
|
||||||
@@ -229,6 +228,8 @@ NotLower
|
|||||||
adw xbyte #screenBytes
|
adw xbyte #screenBytes
|
||||||
inc ydraw
|
inc ydraw
|
||||||
lda ydraw
|
lda ydraw
|
||||||
|
cmp #screenheight
|
||||||
|
beq NoClearSky
|
||||||
cmp temp2
|
cmp temp2
|
||||||
bne @-
|
bne @-
|
||||||
NoClearSky
|
NoClearSky
|
||||||
@@ -288,6 +289,7 @@ drawline
|
|||||||
bne drawline
|
bne drawline
|
||||||
; end of Drawline proc
|
; end of Drawline proc
|
||||||
.ENDIF
|
.ENDIF
|
||||||
|
NoMountain
|
||||||
rts
|
rts
|
||||||
.endp
|
.endp
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
|
|||||||
+10
-1
@@ -70,7 +70,9 @@
|
|||||||
OptionsMainLoop
|
OptionsMainLoop
|
||||||
|
|
||||||
lda WindChangeInRound
|
lda WindChangeInRound
|
||||||
sta OptionsHere+126
|
sta OptionsHere+128
|
||||||
|
lda FastSoilDown
|
||||||
|
sta OptionsHere+88
|
||||||
|
|
||||||
jsr OptionsInversion
|
jsr OptionsInversion
|
||||||
jsr getkey
|
jsr getkey
|
||||||
@@ -137,6 +139,13 @@ OptionsNoTab
|
|||||||
sta WindChangeInRound
|
sta WindChangeInRound
|
||||||
rts
|
rts
|
||||||
NotWind
|
NotWind
|
||||||
|
cmp #$02
|
||||||
|
bne NotGravity
|
||||||
|
lda FastSoilDown
|
||||||
|
eor #$66 ; 'f' character
|
||||||
|
sta FastSoilDown
|
||||||
|
rts
|
||||||
|
NotGravity
|
||||||
ldy GradientNr
|
ldy GradientNr
|
||||||
iny
|
iny
|
||||||
cpy #$03
|
cpy #$03
|
||||||
|
|||||||
+18
-10
@@ -1367,8 +1367,26 @@ FoundPeek1
|
|||||||
beq NextColumn1
|
beq NextColumn1
|
||||||
; we have both tables filled with starting values
|
; we have both tables filled with starting values
|
||||||
|
|
||||||
|
.IF TARGET >= 800
|
||||||
|
.IF FASTER_GRAF_PROCS = 1
|
||||||
|
lda FastSoilDown
|
||||||
|
beq @+
|
||||||
|
jmp SoilDownTurbo.NoClearTanks
|
||||||
|
@
|
||||||
|
.ENDIF
|
||||||
|
.ENDIF
|
||||||
; main loop starts here
|
; main loop starts here
|
||||||
MainFallout2
|
MainFallout2
|
||||||
|
.IF TARGET = 800
|
||||||
|
.IF FASTER_GRAF_PROCS = 1
|
||||||
|
lda CONSOL
|
||||||
|
and #%00000001 ; START KEY
|
||||||
|
bne NoFastDown
|
||||||
|
jmp SoilDownTurbo.NoClearTanks
|
||||||
|
NoFastDown
|
||||||
|
.ENDIF
|
||||||
|
.ENDIF
|
||||||
|
|
||||||
mwa RangeLeft xdraw
|
mwa RangeLeft xdraw
|
||||||
adw RangeLeft #mountaintable temp
|
adw RangeLeft #mountaintable temp
|
||||||
adw RangeLeft #mountaintable2 tempor2
|
adw RangeLeft #mountaintable2 tempor2
|
||||||
@@ -1417,16 +1435,6 @@ ColumnIsReady
|
|||||||
cpw xdraw RangeRight
|
cpw xdraw RangeRight
|
||||||
bcc FalloutOfLine
|
bcc FalloutOfLine
|
||||||
beq FalloutOfLine
|
beq FalloutOfLine
|
||||||
|
|
||||||
.IF TARGET = 800
|
|
||||||
.IF FASTER_GRAF_PROCS = 1
|
|
||||||
lda CONSOL
|
|
||||||
and #%00000001 ; START KEY
|
|
||||||
bne NoFastDown
|
|
||||||
jmp SoilDownTurbo.NoClearTanks
|
|
||||||
NoFastDown
|
|
||||||
.ENDIF
|
|
||||||
.ENDIF
|
|
||||||
jsr CheckExitKeys ; Check for O, Esc or Start+Option keys
|
jsr CheckExitKeys ; Check for O, Esc or Start+Option keys
|
||||||
spl:rts ; exit if pressed 'Exit keys'
|
spl:rts ; exit if pressed 'Exit keys'
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -36,13 +36,14 @@
|
|||||||
icl 'definitions.asm'
|
icl 'definitions.asm'
|
||||||
;---------------------------------------------------
|
;---------------------------------------------------
|
||||||
|
|
||||||
FirstZpageVariable = $55
|
FirstZpageVariable = $54
|
||||||
.zpvar DliColorBack .byte = FirstZpageVariable
|
.zpvar DliColorBack .byte = FirstZpageVariable
|
||||||
.zpvar ClearSky .byte ; $ff - Crear sky during drawmountains, 0 - no clear sky
|
.zpvar ClearSky .byte ; $ff - Crear sky during drawmountains, 0 - no clear sky
|
||||||
.zpvar PaddleState .byte ; old state 2nd button for 2 buttons joysticks
|
.zpvar PaddleState .byte ; old state 2nd button for 2 buttons joysticks
|
||||||
.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 WindChangeInRound .byte ; wind change after each turn (not round only) flag - (0 - round only, >0 - each turn)
|
||||||
|
.zpvar FastSoilDown .byte ; 0 - standard, >0 - fast
|
||||||
.zpvar JoystickNumber .byte
|
.zpvar JoystickNumber .byte
|
||||||
.zpvar LazyFlag .byte ; 7 bit - run Lazy Darwin, 6 bit - run Lazy Boy or Darwin (!) after inventory, 0 - nothing
|
.zpvar LazyFlag .byte ; 7 bit - run Lazy Darwin, 6 bit - run Lazy Boy or Darwin (!) after inventory, 0 - nothing
|
||||||
.zpvar SpyHardFlag .byte ; >$7f - run SpyHard after inventory
|
.zpvar SpyHardFlag .byte ; >$7f - run SpyHard after inventory
|
||||||
|
|||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
Reference in New Issue
Block a user