LeGravity is a space-themed arcade shooter game set amidst the backdrop of a starry cosmic landscape. In this game, players control a spaceship that must dodge and destroy incoming enemies while navigating the gravitational anomalies of space.
- Dynamic Enemy AI: Encounter various enemy ships with unique movement patterns.
- Weapon Upgrades: Collect power-ups to enhance your ship's firepower.
- Physics-based Movement: Experience the pull of gravity as it affects the ship's trajectory.
- Pixel Art Graphics: Enjoy a retro aesthetic with modern game mechanics.
- Qt 5.x
- CMake 3.x
- A C++17 compliant compiler
- Clone the repository to your local machine.
- Navigate to the cloned directory.
- Run
cmake .
in the terminal to generate the Makefile. - Build the project by running
make
.
After the build is complete, run the executable created in the bin directory.
- WASD controls: Move the spaceship.
- Spacebar: Fire bullets.
LeGravity is built using the Qt framework for the user interface and game rendering. The game's logic is implemented in C++ for optimal performance.
- Bullet.cpp: Manages bullet behavior and rendering.
- Enemy.cpp: Defines enemy characteristics and AI.
- Game.cpp: Main game loop and state management.
- mainwindow.ui: Qt UI file for the game window.
This project is licensed under the MIT License - see the LICENSE.md
file for details.
The following assets are used in the LeGravity game, with gratitude to the original creators:
-
Bullet:
Bullet.png
Source: Pixel Fireball on Freepik -
Enemy:
Enemy.png
Source: UFO on Pixilart -
Player:
Player.png
Source: Social Media Icons on Pinterest -
Background:
Background.png
Source: Pinterest