'Four Animated Scenes
'By Sierraken on June 18, 2020.
'Press the Space Bar to see each one.
'Thanks to B+ for teaching me more about arrays.
_TITLE "Press space bar to see more." nSnow = 32
DIM x
(1 TO nSnow
), y
(1 TO nSnow
), s
(1 TO nSnow
), speed
(1 TO nSnow
)
start:
'One: Television
fx2 = fx2 + 1
PSET ((SIN(fy
* 0.017453 / fx2
) * t
) + fx
, (SIN(fx
* 0.017453 / fx2
) * t
) + fy
), _RGB32(200, 200, 200) LINE (300 - tv
, 100 - tv
)-(500 + tv
, 300 + tv
), _RGB32(150, 127, 0), B
LINE (390, 330)-(410, 380), _RGB32(150, 127, 0), BF
LINE (330, 380)-(470, 400), _RGB32(150, 127, 0), BF
two:
fx2 = 0
t = 0: tt = 0
'Two: Creek
LINE (0, 400)-(800, 550), _RGB32(127, 172, 255), BF
hc = hc + .25
hc = 0
fx2 = fx2 + 2
PSET ((SIN(fy
* 2.017453 / fx2
) * t
) + fx
, (SIN(fx
* 4.017453 / fx2
) * t
) + fy
), _RGB32(20, 80, 255) three:
fx2 = 0
t = 0: tt = 0
'Three: Pond
tt = 1
t = 155
hc = hc + .25
hc = 0
cir = cir + .25
t = t + tt
four:
fx2 = 0
t = 0: tt = 0
'Four: Snow
y(i) = 0
L = 200
y(i) = y(i) + speed(i)
' is x or y off screen?