A Java-based 2D space shooter game where you control a Ship to defend your space from enemy ships. This project demonstrates object-oriented programming (OOP) concepts like inheritance, abstract classes, and interfaces, along with the utilization of ArrayLists, loops, and conditionals for the AP Computer Science A Final Project.
- Player-controlled Starfighter โ Move and shoot using keyboard inputs (Arrow Keys, Spacebar to Shoot)
- OOP Design โ Uses:
- Inheritance (
MovingThingโAmmo/Alien/Ship) - Abstract classes (
MovingThing) - Interfaces (
Moveable)
- Inheritance (
-
Prerequisites:
- Java JDK (version 8 or higher)
- Git (optional, if cloning the repo)
-
Clone & Run:
git clone https://github.com/CrimsonError/StarFighter cd StarFighter/ ./Main.java