Do this project on your own. We'll go back to partners for the final couple weeks.
You may, of course, discuss the project with classmates if that helps you think things through.
We will, together, write a Java program with sprites moving around in a window, making sounds.
This work will be based on the JavaFX library. You can find tutorials on JavaFX in lots of places,
(e.g. this one from JetBrains).
The final main program will be written by Jeff, and each student will write one sprite subclass.
The result should be weirdly spectacular.
The code will all be shared and maintained in a single git repository on bitbucket.
What to do
- Obtain a clone of
https://bitbucket.org/jeffondich/cs257_2016
- Add a Sprite subclass src/sprites/YourUserName.java. You may also add resource files
src/res/yourusername1.png, src/res/yourusername1.wav, etc. as needed.
Using your user name in the naming of these files is essential
to prevent naming conflicts when I assemble all the sprites in one place.
- Implement and test your Sprite subclass. To make your sprite redraw itself appropriately
when the main program requests a size change, you will need to override setSize()
to make sure all the objects inside your sprite get resized. To make your sprite
interesting, you'll need to override step() and makeSound().
- As you work on YourUserName.java, you must not alter Sprite.java.
- When you're done, submit your sprite by emailing YourUserName.java and
any resource files to Jeff. Note that if you haven't named your sprite and its resources
as described above, Jeff will just ask you to resubmit with proper naming.