Visual Debug :) added

This commit is contained in:
Pecusx
2023-01-21 22:48:46 +01:00
parent da4d82cca4
commit e842d455e6
5 changed files with 21 additions and 4 deletions
+3
View File
@@ -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
View File
@@ -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
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+15 -2
View File
@@ -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