winter can be drawn by PLOT (compilation option)

This commit is contained in:
Pecusx
2023-04-05 19:00:56 +02:00
parent 19b71664f1
commit 66d620fe4b
+21
View File
@@ -2404,6 +2404,7 @@ NoWall
; X and TankNr - index of shooting tank ; X and TankNr - index of shooting tank
; ------------------------------------------------- ; -------------------------------------------------
mva #sfx_sandhog sfx_effect mva #sfx_sandhog sfx_effect
.IF FASTER_GRAF_PROCS = 1
ldy #0 ; byte counter (from 0 to 39) ldy #0 ; byte counter (from 0 to 39)
NextColumn NextColumn
; big loop - we repat internal loops for each column of bytes ; big loop - we repat internal loops for each column of bytes
@@ -2438,6 +2439,26 @@ NextLine2
iny iny
cpy #40 cpy #40
bne NextColumn bne NextColumn
.ELSE
mva #1 color
mwa #120 ydraw
NextLineSlow
lda #0
sta xdraw
sta xdraw+1
NextPixelSlow
bit random
bpl NoPlot
bvc NoPlot
jsr plot.MakePlot
NoPlot
inw xdraw
cpw xdraw #screenwidth
bne NextPixelSlow
dec ydraw
dec ydraw
bpl NextLineSlow
.ENDIF
; and we have "snow" :) ; and we have "snow" :)
lda #0 lda #0
ldx TankNr ldx TankNr