|
CIT 594, Animation Lecture--Applets and source code
|
| These are the HTML files. To download: Netscape: Right-click and choose Save link as...Internet Explorer: Right-click and choose Save Target As... |
These are the Java source files. | |
| 1 | Bounce The basic bouncing ball animation |
Bounce.java |
| 2 | MVC Same thing, but with better class design |
Controller.java Model.java View.java |
| 3 | Flicker Adding a background causes applet to flicker |
Controller.java Model.java View.java |
| 4 | Offscreen Double-buffering solves the flicker problem |
Controller.java Model.java View.java |
| 5 | Controls Same thing, with an added Start/Stop button |
Controller.java Model.java View.java |
| 6 | Images Replacing the ball and checkerboard with a skull and graveyard |
Controller.java Model.java View.java |
| 7 | Series of images Making the skull rotate |
Controller.java Model.java View.java |
| 8 | Multiple images No new ideas, just added a skeleton |
Controller.java Model.java View.java |
| 9 | Mouse control Grabbing the skull or skeleton with the mouse |
Controller.java Model.java View.java |
Images used (there are a lot of them!). To work with a given applet,
images must be placed in a subdirectory of the directory containing the
HTML file, and the subdirectory must be named images. |
Image folder |