public class BasicSprite
extends java.lang.Object
implements Sprite
This class encapsulates a sprite which is a circle of diameter 10 units and
color red. The sprite's initial position is randomly chosen. For each frame,
this sprite moves 1 unit down and 1 unit to the right, wrapping around the
canvas when the boundaries are encountered.
Author:
mb
Constructor Summary
Constructors
Constructor and Description
BasicSprite(int widthOfDrawingRegion,
int heightOfDrawingRegion)
Creates a basic sprite within a game world with the specified dimensions.