StarSim.java
Looking for a slick space simulation applet? StarSim loads fast, uses double buffering to eliminate flickering, and produces a great effect! And source code is included!
In the source code you'll find standard Java optimization techniques, such as Double Buffering and threads, which were used for the actual moving of the stars, etc.
Usage: Place the starsim.class within your HTML directory.
Java Source: starsim.java
HTML Source:
<applet code=starsim width=320 height=200>
<param name=stars value="200">
</applet>
Author: David Betz
|