CS 257: Software Design
An all-class project: sprites in a box
Phase 3 of 3: Implementing the Sprite
The goals for this final phase of the sprites assignment are:
- Implement a Sprite subclass
- Add your sprite code to our shared repository
What to do
Notes
- Don't change SpriteWorld.java or Ball.java.. If you were to change either one
and then push your changes, other people wouldn't get the original files.
- Really really don't change Sprite.java at all, ever. Sprite.java is the
specification for your assignment. If your subclass doesn't work with the existing Sprite
as its superclass, then your subclass is not correct. Fix the subclass, not the parent class.
(Note that Sprite as it is can't do all sorts of neato things you might want to do. Too bad.
Changes to Sprite itself would have to be negotiated with the whole team. You as an individual
developer don't have the authority to make that change unilaterally.)
- Code sample for using image files: ImageTest.java
and moose.jpeg
- Code sample for using sound files (.wav, .au, and .aiff only):
SoundTest.java and
moose.wav
Your chance for glory
On Friday, we'll run a test program with all the sprites. I'll pick a Jeff's Choice winner,
and we'll have a vote for People's Choice as well. Winners will get an extra 2 points on the
assignment, but more importantly, the world-wide acclaim that comes from these prestigious awards.