Anti-aircraft Gunner Game Development

Sarah

Sarah Silva

Anti-aircraft Gunner

A simple OpenGL 2d game written in Java where you control a vehicle that shoots projectiles against enemy planes that try to destroy you and the city buildings 😯

Prerequisites šŸ”Ø

Java 11 or newer
Windows, MacOS or Linux OS

Usage šŸ’»

The .jar and .exe files can be downloaded directly from the Releases section
.
If you would like to clone this repository, play around and recompile it:
This is a Gradle project, so by just running ./gradlew build should get you all set and have everything compiled without needing to take care of any dependencies.

How to play šŸŽ®

Action Description
Use the LEFT and RIGHT arrow keys to move the horizontally player across the screen:
Use the UP and DOWN arrow keys to rotate the player around (-80 to +80 degrees)
Hold the SHIFT key to charge the rocket launcher
Press SPACEBAR while still holding SHIFT to shoot a projectile

NOTES:

The longer you hold the SHIFT key the more powerful your projectile will be when you shoot. Unfortunately, since excess of power leads to corruption, there's a limit for how powerful your shot can be (yeah I know 😄). You will see when your launcher has already reached its full capacity when the arrow turns red, like the image below.
There's also a minimum power that your launcher has to have in order for you to be able to shoot, so you can't just hit SPACE and shoot.
And yeah, you have unlimited projectiles at your disposal. Just be careful about crashing your computer by spawning too many of them (remember, don't abuse power! šŸ˜‰)

Authors šŸ‘©ā€šŸ’»

This game was made as part of a computer science college assignment related to the subject of Computer Graphics.
Like this project

Posted Jul 30, 2025

Developed a 2D anti-aircraft game using Java and OpenGL