-
Project 1
Project 1 will be the GridPlotter assignment created by Alyce Brady at Kalamazoo College.
Download the zipped file GridPlotter.zip. The instructions are
in the Instructions folder, in the GridPlotter.shtml file.
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.
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 Thurs. Oct. 2.
Exercise 2 and 3 are due Thurs. Oct. 9
Parts 1-5 of Exercise 4 are due Thurs. Oct. 16
Parts 6-10 of Exercise 4 are due Thurs. Oct. 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.
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. An overview (written by
the original authors, Dan Leyzberg and Art Simon) of the whole project is here.
Milestone 1: Make space ship appear on the screen. Detailed instructions. Due Thurs. Nov. 13
Milestone 2: Make space ship move in a straight line and turn. You don't need to add
in zero-gravity effects. Detailed instructions. KeyListener demo code: Asteroids.java and Test.java Due Thurs. Nov. 20.
Milestone 3: Create an Asteroid class. Create an array of moving asteroids. Detailed instructions. Due Wed. Nov. 26.
Milestone 4: Check for collisions between the ship and asteroids. Detailed instructions. Due Thurs. Dec. 4.
Milestone 5: Add in two additional features (see below). Due Thurs. Dec. 11.
In class code review: Thurs. Dec. 11. You must pass the code review to pass project 2. You can re-try up to three times.
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 two required.