nicer sources
This commit is contained in:
+17
-15
@@ -1,17 +1,19 @@
|
|||||||
; @com.wudsn.ide.lng.mainsourcefile=scorch.asm
|
; @com.wudsn.ide.lng.mainsourcefile=scorch.asm
|
||||||
;Atari 8-bit Scorched Earth source code
|
|
||||||
|
;Atari 8-bit Scorch source code
|
||||||
;---------------------------------------------------
|
;---------------------------------------------------
|
||||||
;by Tomasz 'pecus' Pecko and Pawel 'pirx' Kalinowski
|
;by Tomasz 'pecus' Pecko and Pawel 'pirx' Kalinowski
|
||||||
;Warsaw 2000, 2001, 2002, 2003, 2009, 2012, 2013
|
;Warsaw 2000, 2001, 2002, 2003, 2009, 2012, 2013
|
||||||
;Miami & Warsaw 2022, 2023
|
;Miami & Warsaw 2022, 2023
|
||||||
|
|
||||||
|
;WARNING! requires mads compiled on 2023-09-13 or later
|
||||||
|
;atari800 -5200 -cart ${outputFilePath} -cart-type 4
|
||||||
|
;atari800 -run ${outputFilePath}
|
||||||
|
|
||||||
;---------------------------------------------------
|
;---------------------------------------------------
|
||||||
.IFNDEF TARGET
|
.IFNDEF TARGET
|
||||||
.def TARGET = 800 ; 5200
|
.def TARGET = 800 ; 5200
|
||||||
.ENDIF
|
.ENDIF
|
||||||
;WARNING! requires mads compiled on 2023-06-03 or later
|
|
||||||
;atari800 -5200 -cart ${outputFilePath} -cart-type 4
|
|
||||||
;atari800 -run ${outputFilePath}
|
|
||||||
;---------------------------------------------------
|
;---------------------------------------------------
|
||||||
.def CART_VERSION = 0
|
.def CART_VERSION = 0
|
||||||
; if 1 - dual splash screen
|
; if 1 - dual splash screen
|
||||||
@@ -24,7 +26,7 @@
|
|||||||
; (direct writes to screen memory - atari only :) )
|
; (direct writes to screen memory - atari only :) )
|
||||||
;---------------------------------------------------
|
;---------------------------------------------------
|
||||||
|
|
||||||
OPT r+ ; saves 10 bytes, and probably work :) : https://github.com/tebe6502/Mad-Assembler/issues/10
|
OPT r+ ; saves 10 bytes, and probably works :) https://github.com/tebe6502/Mad-Assembler/issues/10
|
||||||
|
|
||||||
;---------------------------------------------------
|
;---------------------------------------------------
|
||||||
.macro build
|
.macro build
|
||||||
@@ -54,16 +56,10 @@ AdditionalZPvariables = $20
|
|||||||
|
|
||||||
FirstZpageVariable = $51
|
FirstZpageVariable = $51
|
||||||
.zpvar DliColorBack .byte = FirstZpageVariable
|
.zpvar DliColorBack .byte = FirstZpageVariable
|
||||||
.zpvar FirstKeypressDelay .byte
|
|
||||||
.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 RandomMountains .byte ; mountains type change after each turn 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
|
.zpvar LazyFlag .byte ; 7 bit - run Lazy Darwin, 6 bit - run Lazy Boy or Darwin (!) after inventory
|
||||||
; 0 - nothing
|
; 0 - nothing
|
||||||
@@ -77,7 +73,6 @@ FirstZpageVariable = $51
|
|||||||
.zpvar CharCode .byte
|
.zpvar CharCode .byte
|
||||||
.zpvar fontind .word
|
.zpvar fontind .word
|
||||||
.zpvar tanknr .byte
|
.zpvar tanknr .byte
|
||||||
.zpvar TankSequencePointer .byte
|
|
||||||
.zpvar oldplot .word
|
.zpvar oldplot .word
|
||||||
.zpvar xc .word
|
.zpvar xc .word
|
||||||
.zpvar temp .word ; temporary word for the most embeded loops only
|
.zpvar temp .word ; temporary word for the most embeded loops only
|
||||||
@@ -110,7 +105,6 @@ FirstZpageVariable = $51
|
|||||||
.zpvar dliCounter .byte
|
.zpvar dliCounter .byte
|
||||||
.zpvar pressTimer .byte
|
.zpvar pressTimer .byte
|
||||||
.zpvar NTSCcounter .byte
|
.zpvar NTSCcounter .byte
|
||||||
.zpvar IsEndOfTheFallFlag .byte ;for small speedup ground falling
|
|
||||||
.zpvar sfx_effect .byte
|
.zpvar sfx_effect .byte
|
||||||
.zpvar RMT_blocked .byte
|
.zpvar RMT_blocked .byte
|
||||||
.zpvar ScrollFlag .byte
|
.zpvar ScrollFlag .byte
|
||||||
@@ -142,6 +136,14 @@ FirstZpageVariable = $51
|
|||||||
.zpvar HitFlag .byte ; $ff when missile hit ground, $00 when no hit,
|
.zpvar HitFlag .byte ; $ff when missile hit ground, $00 when no hit,
|
||||||
; $01-$06 tank index+1 when hit tank
|
; $01-$06 tank index+1 when hit tank
|
||||||
.zpvar PositionOnTheList .byte ; pointer position on the list being displayed
|
.zpvar PositionOnTheList .byte ; pointer position on the list being displayed
|
||||||
|
.zpvar FirstKeypressDelay .byte
|
||||||
|
.zpvar IsEndOfTheFallFlag .byte ;for small speedup ground falling
|
||||||
|
.zpvar TankSequencePointer .byte
|
||||||
|
.zpvar WindChangeInRound .byte ; wind change after each turn (not round only) flag
|
||||||
|
; (0 - round only, >0 - each turn)
|
||||||
|
.zpvar RandomMountains .byte ; mountains type change after each turn flag
|
||||||
|
; (0 - round only, >0 - each turn)
|
||||||
|
.zpvar FastSoilDown .byte ; 0 - standard, >0 - fast
|
||||||
.zpvar XHit .word
|
.zpvar XHit .word
|
||||||
.zpvar delta .word
|
.zpvar delta .word
|
||||||
.zpvar HowMuchToFall .byte
|
.zpvar HowMuchToFall .byte
|
||||||
@@ -558,7 +560,6 @@ checkForHuman ; if all in skillTable other than 0 then switch to DEMO MODE
|
|||||||
dex
|
dex
|
||||||
bpl checkForHuman
|
bpl checkForHuman
|
||||||
; no people, just wait a bit
|
; no people, just wait a bit
|
||||||
;pause 150
|
|
||||||
ldy #75
|
ldy #75
|
||||||
jmp PauseYFrames
|
jmp PauseYFrames
|
||||||
; rts
|
; rts
|
||||||
@@ -784,7 +785,8 @@ EndofBFGDLI
|
|||||||
org $b000 ; address of RMT module
|
org $b000 ; address of RMT module
|
||||||
MODUL
|
MODUL
|
||||||
; RMT module is standard Atari binary file already
|
; RMT module is standard Atari binary file already
|
||||||
ins "artwork/sfx/scorch_str9-NTSC.rmt",+6 ;include music RMT module
|
; include music RMT module:
|
||||||
|
ins "artwork/sfx/scorch_str9-NTSC.rmt",+6
|
||||||
MODULEND
|
MODULEND
|
||||||
;----------------------------------------------
|
;----------------------------------------------
|
||||||
icl 'constants_top.asm'
|
icl 'constants_top.asm'
|
||||||
|
|||||||
BIN
Binary file not shown.
Reference in New Issue
Block a user