-
Project 1
Project 1 will be the GridPlotter assignment created by Alyce Brady at Kalamazoo College.
Download the zipped file GridPlotter.zip.
To get the program running:
1. Create a new project in Eclipse.
2. Create a new package in your project called "edu.kzoo".
3. Add the jar file grid.jar (in the zip file) to your project build path as follows:
Right click (or control-click on a mac) on your project name. Choose "Build Path" and then
"Configure Build Path" from the menus. A new window will come up, and you should be in the
Libraries tab. Click on the button "Add External JARs..." Find the grid.jar file and click ok.
4. Drag the three .java files in the JavaSourceFiles folder in the zip file onto the package
edu.kzoo in Eclipse, and add "package edu.kzoo;" to the top of each of them.
5. You should then be able to run GridPlotterApp.
The instructions are here and in the Instructions folder,
in the GridPlotter.shtml file.
For Exercises 1 and 3, submit a text file with the answers to the questions, and for
Exercise 3, additionally submit GridPlotter.java with your implementation of onClearGridButtonClick.
For Exercise 2, submit a text file
explaining what the constants do.
Exercise 1 is due Mon. March 2.
Exercise 2 and 3 are due Mon. March 9
Parts 1-5 of Exercise 4 are due Mon. March 16
Parts 6-9 of Exercise 4 are due Mon. March 23.
Start early! You can upload as many attempts as you want for each part in Blackboard.
-
Project 2
Project 2 is the Asteroids game assignment, as created by Dan Leyzberg and Art Simon.
You may work with alone or with a partner. If you work with a partner, only one of you should submit the code on blackboard, but you
should clearly indicate who your partner is and what the division of work was (it should be fair). Both partners must understand all of the code.
Additionally, if you work with a partner, you must add 4 additional features in Milestone 6, instead of 2 (if work alone).
Download the zipped file
starter_code_110614.zip.
To get the program running:
1. Create a new project in Eclipse.
2. Create a new package in your project called asteroids.
3. Drag the 4 .java files in the unzipped starter_code_110614 folder onto the package
asteroids in Eclipse.
4. Run Asteroids.java.
Detailed instructions are listed with the milestones below.
Overview
An second overview (written by
the original authors, Dan Leyzberg and Art Simon) of the whole project is here.
Milestone 1: Write the method to draw a Polygon. Test your method by drawing one (or more) on the screen. Updated detailed instructions. Due Mon. April 13.
Milestone 2: Make space ship appear on the screen. Updated detailed instructions. Due Mon. April 20
Milestone 3: Make space ship move in a straight line and turn. You don't need to add
in zero-gravity effects. Updated detailed instructions. KeyListener demo code: Asteroids.java and Test.java Due Mon. April 27.
Milestone 4: Create an Asteroid class. Create an array of moving asteroids. Updated detailed instructions. Due Mon. May 4.
Milestone 5: Check for collisions between the ship and asteroids. Updated detailed instructions. Due Mon. May. 11.
Milestone 6: Add in additional features (see below). If you are working alone, you must add in two additional features. If you are working with a partner, you must add in four additional features. Due Mon. May 18.
In class code review: Thurs. May 14. You must pass the code review to pass project 2. You can re-try two times (3 tries total).
Possible features to add: (basic instructions for many of them are in the overview)
- Spaceship fires a bullet when a key is pressed.
- Test for bullets hitting asteroids, and make them disappear when hit.
- Add stars in the background.
- Add in zero-gravity acceleration effect.
- Make the large asteroids split into smaller asteroids when they are hit.
- Add a timer, and end the game if the player fails to destroy all the asteroids before the time runs out.
- Keep score.
- Anything else you can think of!
Extra credit will be given for any additional features beyond the required ones.