Read Java Text Book: pp. 644-652
NOTE: Java Text Book page 1 is page 35 of the PDF. In the assignments and labs, the page numbers are the actual book page numbers (not the PDF page numbers). To calculate the PDF page number, just add 34 to the actual book page number!
ATTRIBUTION NOTICE: The dog sprite sheets were created by Michael J Pierce @ IsometricRobot.com based on the cat sprite sheets which were created by dogchicken. The plasma ball sprite sheet is a derivative of a CC-BY-SA video by Geni found on Wikimedia Commons, and is licensed under CC-BY-SA by pennomi. When using this, please attribute it to both Geni and Thane Brimhall. The city background image is in the public domain. The animated gif of the cat displayed under week 12 was created by dogchicken.
I. Create a subclass of Animal, similar to Dog or Cat, using your own animation frame image set (sprite sheet) and sound effects. You can find sprite sheets and sound effects on opengameart.org
(You can also record your own audio and create your own images.)
If you set AUDIO to true, then you will need a file called plasmaball.wav
II. Make the necessary changes in AnimalTestG so that your animal is instantiated and updated similarly to the Cat and Dog.
III. Extend the functionality of the game: e.g. implement new movements for your character, a new type of Projectile, game levels, etc.
I. Create a subclass of Animal, similar to Dog or Cat, using your own animation frame image set (sprite sheet) and sound effects. You can find sprite sheets and sound effects on opengameart.org
You need a file called plasmaball.wav (You can also record your own audio and create your own images.)
II. Make the necessary changes in AnimalTestG so that your Animal is instantiated and updated similarly to the Cat and Dog.
III. Consider how you can use the tools demonstrated by AnimalTestG to implement your own game/simulation.
I. Create a subclass of Animal, similar to Dog or Cat, using your own animation frame image set (sprite sheet) and sound effects. You can find sprite sheets and sound effects on opengameart.org
You need a file called plasmaball.wav (You can also record your own audio and create your own images.)
II. Make the necessary changes in AnimalTestG so that your Animal is instantiated and updated similarly to the Cat and Dog.
III. Consider how you can use the tools demonstrated by AnimalTestG to implement your own game/simulation.
I. Create a subclass of Animal, similar to Dog or Cat, using your own animation frame image set (sprite sheet) and sound effects. You can find sprite sheets and sound effects on opengameart.org
II. Make the necessary changes in AnimalTestG so that your Animal is instantiated and updated similarly to the Cat and Dog.
III. Consider how you can use the tools demonstrated by AnimalTestG to implement your own game/simulation.
I. Create a subclass of Animal, similar to Dog or Cat, using your own image. You can find images on opengameart.org
II. Make the necessary changes in AnimalTestG so that your Animal is instantiated and updated similarly to the Cat and Dog.
III. Consider how you can use the tools demonstrated by AnimalTestG to implement your own game/simulation.
Implement a simple AWT/Swing application that presents a window (JFrame) with an input text box (JTextField), an output text box, and a "Factorial" button (JButton). The user should be able to type a small integer into the input text box, and then click the button to see the factorial of the input integer displayed in the output text box. You can begin with the code on pages 665-666 in section 16.12.
Implement a simple AWT/Swing application that displays a message in a JLabel component. The JLabel should be added to a JFrame. You can begin with the code on pg. 648 of Java Text Book. Try making some changes, and begin considering how to implement your project using AWT/Swing.
AnimalTestG.java (Part I - Determine where to place dog.png so that it is found by ImageIO.read() at run time (See the draw() method in Dog.java). PART II - Find the comment that says MOVE THE ANIMAL in AnimalTestG.java and add a line of code under it to move the animal. Look at the Animal class to see how to call the move(int) method. Part III - Replace dog.png with your own image. )
PolygonTestG.java (Create a second polygon instance with a different set of points. Display the second polygon next to the first one.)
Animals.zip (Extract this into your src folder. Run AnimalTest. Then implement a new type of Animal. PART II: Create an array of type Animal and store several types of animal objects in it; then iterate over the array, calling the speak() method on each Animal. PART III: Think of some other behavior or state that your animal could have. You can modify the Animal superclass itself if necessary.)