VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Another Star Field (updated) well documented

Jeff Godfrey  (1 Submission)   Games   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

Draws an animated StarField. A left-click with the mouse will move the StarField center to the mouse position, holding down the left mouse button while dragging the mouse will continually change the StarField center, holding down the right mouse button will activate a "hyperspace" effect (of sorts). The form can be resized. Each star's size and brightness is calculated according to its relative distance from you, the viewer. The number of stars in the StarField is easily changed.

Assumes
(1) Start a new project (2) Add a "timer" object to the existing form and set its "interval" property to "1" (3) Paste the supplied code into the Form code-window (4) Run it (5) Enjoy! (6) Notes: The vortex center can be changed by left-clicking with the mouse (or dragging the mouse with left button down) and the form can be resized, A HyperSpace effect (of sorts) can be activated by holding down the right mouse button, The number of stars can be changed by modifying the value of "gStarCount". "Submitting" this code seems to screw up its format (alignment and such), sorry....

Rate Another Star Field (updated) well documented (3(3 Vote))
Another Star Field (updated) well documented.bas

Another Star Field (updated) well documented Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters