Travis Furrer
6.837 Project 1

Note: A JDK 1.1 compliant viewer is required for this applet. Preferrably, use the JDK1.1.x appletviewer or Hotjava (on this page).

Intsructions: Mouse button 2 querys a pixel. The pixel coordinates and the names any sprites present at the pixel will be sent to System.out. Press mouse buttons 1 or 3 on a sprite to select the sprite, or outside a sprite to move the currently selected sprite to the new location.

Features: Sprites can be moved over any edge of the applet and clipping will occur. Sprites are transparent, and can overlap each other. Sprites are animated, and an arbitrary sequence of frames can be specified. The playfield scrolls, and can be of arbitrary dimensions (above is 300x300). The applet is slightly slow (no optimizations were attempted, since this was not mentioned as part of this project assignment).

The code is in the files: Project1.java, Sprite.java, PlayField.java.

The following images are used. The background was generated with gimp and the other images were taken from www.barrysclipart.com and modified with gimp: