CIT 594, Animation Lecture--Applets and source code
Dave Matuszek, Spring 2002

 

  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.
Bounce
The basic bouncing ball animation
Bounce.java
MVC
Same thing, but with better class design
Controller.java
Model.java
View.java
Flicker
Adding a background causes applet to flicker
Controller.java
Model.java
View.java
Offscreen
Double-buffering solves the flicker problem
Controller.java
Model.java
View.java
Controls
Same thing, with an added Start/Stop button
Controller.java
Model.java
View.java
Images
Replacing the ball and checkerboard with a skull and graveyard
Controller.java
Model.java
View.java
Series of images
Making the skull rotate
Controller.java
Model.java
View.java
Multiple images
No new ideas, just added a skeleton
Controller.java
Model.java
View.java
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