An Animated Sprite is a Sprite


	class AnimatedSprite extends Sprite {
	    int frames;         // frames in sprite
	                        // there are other private variables
	
	    public AnimatedSprite(Image images, int frames);
	    public void addState(int track, int frame, int ticks, int dx, int dy);
	    public void Draw(Raster bgnd);
	    public void nextState();
	    public void setTrack();
	}
	
A track is a series of frames. The frame is displayed for ticks periods. The sprite's position is then moved (dx, dy) pixels.
Lecture 2   Slide 17   6.837 Fall '00