From 66d620fe4b158794397ad4c6346fdf313c1c5074 Mon Sep 17 00:00:00 2001 From: Pecusx Date: Wed, 5 Apr 2023 19:00:56 +0200 Subject: [PATCH] winter can be drawn by PLOT (compilation option) --- weapons.asm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/weapons.asm b/weapons.asm index 7de25a9..1361f03 100644 --- a/weapons.asm +++ b/weapons.asm @@ -2404,6 +2404,7 @@ NoWall ; X and TankNr - index of shooting tank ; ------------------------------------------------- mva #sfx_sandhog sfx_effect +.IF FASTER_GRAF_PROCS = 1 ldy #0 ; byte counter (from 0 to 39) NextColumn ; big loop - we repat internal loops for each column of bytes @@ -2438,6 +2439,26 @@ NextLine2 iny cpy #40 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" :) lda #0 ldx TankNr