Skip to content

wanyuguan/Invaders

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Invaders

This repo is designed to give new students of the Java programming language practice using basic programming concepts, all while they develop the classicly fun game Space Invaders.

image

*I've verified that this code works on Windows machines. It should run on other operating system too, but they have not been verified.

Download

If you want to dowload a working copy of this game you will need to have Java Development Kit (JDK) 7 or greater installed on your machine (see step 1 in the setup section below for instructions on how to dowload and install it). Once you have the JDK installed download a working version of this game here (Invaders.jar). When the download is complete double click on Invaders.jar (the downloaded file) to run the game.

Programming Concepts

Students who use this repo are expected to have previously learned about the following programming concepts:

  1. Data types. For example, int, double, and String
  2. Conditional branching: if/if else/else
  3. Looping: while and for
  4. Arrays: Creating and indexing. For example, int[] array = new int[2]; array[0] = 10; array[1] = 20;
  5. Functions: Students should have learned how to call and write their own functions with and without parameters and return values. For example:
public static int add(int a, int b) {
    return a + b;
}

// Add 5 + 6
int sum = add(5, 6);

This repo will ask students to apply the concepts above to create a working version of this game.

Getting Started

System Requirements

(see Setup for more detailed instructions)

  • JDK 7 or greater
  • Git
  • IntelliJ IDEA (or your favorite development environment)

Setup

  1. Install JDK 7 or greater
  2. Install Git (I like this package -> GitHub for Windows)
  3. Install IntelliJ IDEA - we use IntelliJ IDEA in my class. Feel free to use the environment that works best for you.
  4. Create GitHub accounts - each student should have their own GitHub account
  5. Fork this repo
  1. Clone THE FORKED repo (not the original repo) on your computer - Instructions for cloning in IntelliJ IDEA

Work on issues

Issues can be found here. They should be worked on in order starting at #1. Each issue states the problem, and describes detailed instructions for how to fix it. When code that fixes an issue is pushed to the forked repo students should move on to the next issue.

Labels

To better prepare students for issues I've tagged each with two labels:

  1. Type: bug | enhancement
    • bug - an issue in the game that needs to be fixed for the bug to work properly
    • enhancement - a bonus feature that will make the game even better
  2. Difficulty: easy | medium | hard | really hard
    • easy - an easy issue to fix
    • medium - a medium issue to fix
    • ...and so on...

Happy Coding 😃!

About

Space Invaders clone, written in Java.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%