Programs: Star Parallax Screensavers (Vertical / Horizontal)
Created: May 16th, 2020
Creator: Cloud Zimmermann
' Program: Star Parallax Screensaver (Vertical)
' Created: May 16th, 2020
' Creator: Cloud Zimmermann
CONST screenHeight%
= 200
IF stars%
(i%
, 2) > screenHeight%
THEN stars%(i%, 2) = stars%(i%, 2) + stars%(i%, 3)
PSET (stars%
(i%
, 1), stars%
(i%
, 2)), stars%
(i%
, 4)
SUB resetStar
(starSelected%
, init%
) stars%
(starSelected%
, 2) = INT(RND * screenHeight%
) + 1 stars%(starSelected%, 2) = 1
stars%
(starSelected%
, 1) = INT(RND * screenWidth%
) + 1 stars%
(starSelected%
, 3) = INT(RND * 3) + 1
stars%(starSelected%, 4) = 15
stars%(starSelected%, 4) = 7
stars%(starSelected%, 4) = 8
' Program: Star Parallax Screensaver (Horizontal)
' Created: May 16th, 2020
' Creator: Cloud Zimmermann
CONST screenHeight%
= 200
IF stars%
(i%
, 1) > screenWidth%
THEN stars%(i%, 1) = stars%(i%, 1) + stars%(i%, 3)
PSET (stars%
(i%
, 1), stars%
(i%
, 2)), stars%
(i%
, 4)
SUB resetStar
(starSelected%
, init%
) stars%
(starSelected%
, 1) = INT(RND * screenWidth%
) + 1 stars%(starSelected%, 1) = 1
stars%
(starSelected%
, 2) = INT(RND * screenHeight%
) + 1 stars%
(starSelected%
, 3) = INT(RND * 3) + 1
stars%(starSelected%, 4) = 15
stars%(starSelected%, 4) = 7
stars%(starSelected%, 4) = 8