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 AnimatedSprite(AnimatedSprite s); // copy a sprite
		public void addState(int track, int frame, int ticks, int dx, int dy);
		public void addTrack(int anim, StringTokenizer parse);
		public void Draw(Raster bgnd);
		public void nextState();
		public void setTrack(int t);
		public boolean notInView(Raster bgnd);
		public boolean overlaps(AnimatedSprite s);
	}
	
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 13   6.837 Fall '01