mirror of
https://github.com/pkali/scorch_src.git
synced 2026-05-20 22:34:21 +02:00
Visual Debug :) added
This commit is contained in:
@@ -224,6 +224,8 @@ PutPixelinDraw
|
|||||||
bit drawFunction
|
bit drawFunction
|
||||||
bpl @+
|
bpl @+
|
||||||
inw LineLength
|
inw LineLength
|
||||||
|
bit Vdebug
|
||||||
|
bmi MeasureVisualisation
|
||||||
jmp ContinueDraw ; was `bne` - not good, because LineLength starts from $ffff
|
jmp ContinueDraw ; was `bne` - not good, because LineLength starts from $ffff
|
||||||
@
|
@
|
||||||
bvc @+
|
bvc @+
|
||||||
@@ -271,6 +273,7 @@ CheckCollisionDraw
|
|||||||
StopHitChecking
|
StopHitChecking
|
||||||
jmp ContinueDraw
|
jmp ContinueDraw
|
||||||
@
|
@
|
||||||
|
MeasureVisualisation
|
||||||
jsr plot
|
jsr plot
|
||||||
|
|
||||||
ContinueDraw
|
ContinueDraw
|
||||||
|
|||||||
+2
-1
@@ -27,12 +27,13 @@
|
|||||||
icl 'definitions.asm'
|
icl 'definitions.asm'
|
||||||
;---------------------------------------------------
|
;---------------------------------------------------
|
||||||
|
|
||||||
FirstZpageVariable = $5A
|
FirstZpageVariable = $59
|
||||||
.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 WindChangeInRound .byte ; wind change after each turn (not round only) flag - (0 - round only, >0 - each turn)
|
||||||
.zpvar JoystickNumber .byte
|
.zpvar JoystickNumber .byte
|
||||||
|
.zpvar Vdebug .byte ; "visual debug" flag ($00 - off, $ff - on)
|
||||||
.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)
|
||||||
.zpvar xbyte .word
|
.zpvar xbyte .word
|
||||||
|
|||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
+16
-3
@@ -1185,6 +1185,13 @@ jumpFromStick
|
|||||||
cmp #@kbcode._S ; $3e ; S
|
cmp #@kbcode._S ; $3e ; S
|
||||||
jeq pressedS
|
jeq pressedS
|
||||||
.IF TARGET = 800
|
.IF TARGET = 800
|
||||||
|
cmp #38 ; /
|
||||||
|
bne NoVdebugSwitch
|
||||||
|
lda Vdebug
|
||||||
|
eor #$ff
|
||||||
|
sta Vdebug
|
||||||
|
jmp ReleaseAndLoop
|
||||||
|
NoVdebugSwitch
|
||||||
cmp #61 ; G
|
cmp #61 ; G
|
||||||
bne EndKeys
|
bne EndKeys
|
||||||
jsr SelectNextGradient
|
jsr SelectNextGradient
|
||||||
@@ -1789,10 +1796,16 @@ SkipCollisionCheck
|
|||||||
mwa ytraj+1 ydraw
|
mwa ytraj+1 ydraw
|
||||||
|
|
||||||
bit TestFlightFlag
|
bit TestFlightFlag
|
||||||
bvs NoUnPlot
|
bvc NoTestFlight
|
||||||
lda tracerflag
|
bit Vdebug
|
||||||
|
bpl NoTestFlight
|
||||||
|
jsr WaitOneFrame ; visualize AI targeting
|
||||||
|
jmp YesUnPlot
|
||||||
|
NoTestFlight
|
||||||
|
lda tracerflag
|
||||||
bne NoUnPlot
|
bne NoUnPlot
|
||||||
|
|
||||||
|
YesUnPlot
|
||||||
jsr UnPlot
|
jsr UnPlot
|
||||||
|
|
||||||
NoUnPlot
|
NoUnPlot
|
||||||
|
|||||||
Reference in New Issue
Block a user