On this page:
Download the assignment project
1 Java Invaders
Submission
6.12

Assignment 4: A Game in Java

This is assignment is to be completed and submitted individually. You may not work with anyone else.

Due: Tuesday, March 5, 11:59:59 PM EST.

Download the assignment project

For this assignment, download the following zip file: Assign4.zip. Save the file somewhere on your computer and unzip it. This will create a directory called Assign4 with an IntelliJ project inside. It contains all the libraries you will need and some code to get you started.

Open IntelliJ and select "Open". Navigate to the Assign4 directory and select it.

This should open up the project and place you inside the Assign4.java file. The first thing you should do is edit the authors line (which should be selected when you open the project) to be your directory ID.

The project has a "Test" configuration in the top right corner. Press the "Run" (green triangle) button to run the test suite. You should see 4 tests pass, confirming everything is set up properly.

1 Java Invaders

For this assignment, you must re-write a significant big-bang game from last semester to use the Java language.

The game you will re-design is the simplified Space Invaders game as written by Austin and David. The code is here. The code should be all you need, but there is a video of the code being written should you find it useful.

You will need to use the javalib.funworld and javalib.worldimages libraries, which you have seen in lab and are included in the IntelliJ project. The project has some code to get you started, which when run will create a new screen and place an image on it. For documentation about these libraries, see this page.

The project comes with two configurations: BigBang will run the main method of the Assign4 class, and thus launch the game; the Test configuration will run the tester library on the Tests class, and thus run the test suite for the program.

Submission

Use submit.cs.umd.edu to submit your solution to the problems. You should create a zip file called Assign4.zip that contains the IntelliJ project containing your solutions.