Just Sum Applets

Twinkle

An applet that uses multiple threads and a 'sprite' abstraction to show twinkling stars.

Twinkle

Source code: Sprite.java Twinkle.java


Java Ships

An applet that implements a programmers game. This will be somewhat familiar to anyone who remembers the CRobots toy. Java Ships implements a framework for custom programmed 'ships' to run within. The ship deals with the outside world by way of Java interface objects, which define methods that the ship can call to scan for other objects on the map, move, and fire its cannons. The programmer has control over how the ship is equipped (number of guns, scanners, engines, armor) within the ship's mass limit, and over how the ship behaves. All items on the map are subclasses of Thing, which makes it possible to program things like mines, torpedoes, etc.

Here is the documentation for the public classes (javadoc format).

The only ships in existance right now are a couple of ridiculously stupid example implementations.

Here's the applet. Note: at the moment, it doesn't work under Exploder. I'll figure it out some time when I'm running Windows.

Sample ships...

DumbShip.java A really stupid ship. He just tries not to run into the walls.

Bunny.java Not much smarter. A little bit faster, and he turns around when he takes damage (like those little duckies in the shooting gallery).

Think you can do better? I hope so! Download the class files for the applet here and the javadoc html documents here.