MY FIRST JAVA APPLET EVER
First applet
Click in the window, and use the arrow keys to move the dude around.
Subsequent stuff
These were all done with the intention of writing the base for a reusable game engine. Animations are done using a MovieClip object that works similarly to Flash's MovieClips. The images for the clips are loaded, and plopped into the appropriate MovieClip object according to an XML file, which makes making graphical changes really easy. All the clips are organized by a static Library object that stores references to them in a HashMap, which means that any class can grab a copy of a MovieClip, and use it.

All this is completely under the hood, so it doesn't really look fancy, but it's useful.
  • ImageButtons, and MovieClips
    This demonstrates the basic MovieClip class, with stop and play commands. The freaky-outey spastic thing at the top of the applet is an ImageButton, demonstrating up, over, and down states. Click the button to make the MovieClip stop and start.
  • Rotating MovieClip
    At this point, I'd figured out XML, so this applet loads all the graphics it needs, etc from this XML file. The centerx and centery attributes determine the point that that particular image is rotated around.
  • Isometric movement
    Yay, I've got a little dude walking around a map! Click on the applet, then use the arrow keys to move the view, and the wsad keys to move the dude. There's a few graphical glitches here and there, but it basically works like I want it to work.