A 2D shooter game where the player shoots at an alien to score points. Each successful hit increases the alien's speed, making the game progressively harder. Missing the target ends the game. The goal is to achieve the highest score by consistently hitting the alien.
This game demonstrates my knowledge of Functions/Methods and Object-Oriented Programming (OOP). It is developed in Lua, a language similar to Python but better suited for game development due to its simplicity and robust support for graphics and OOP.
The source code is organized into the following files, located in the "SourceCode" folder:
- main.lua - Handles main game logic, keyboard inputs, and background rendering.
- player.lua - Defines player behaviors and animations.
- enemy.lua - Defines the enemy logic, including movement.
- bullet.lua - Handles the player's shooting mechanics.
- Download the
SpaceAccuracy.zip
file from this repository. - Extract the contents of the zip file.
- Run
SpaceAccuracy.exe
to launch the game.
- Download and install Love2D.
- Clone or download this repository.
- Navigate to the folder containing the
SpaceAccuracy.love
file. - Launch the game using the following command:
love SpaceAccuracy.love
Special thanks to this tutorial for demonstrating how to bundle Lua source code into a single executable file.
This project uses the GNU General Public License v3.0. For more information, see the LICENSE file.