Galaga-inspired game in SFML
Find a file
2024-06-13 19:03:32 +02:00
.vscode first update 2024-05-19 00:46:55 +02:00
resources minor changes 2024-06-13 19:03:32 +02:00
.gitignore added collisions 2024-05-20 22:39:57 +02:00
engine.cpp minor changes 2024-06-13 19:03:32 +02:00
engine.hpp added music 2024-06-12 22:24:48 +02:00
LICENSE Initial commit 2024-05-18 23:08:05 +02:00
main.cpp added music 2024-06-12 22:24:48 +02:00
menu.cpp added music 2024-06-12 22:24:48 +02:00
menu.hpp added music 2024-06-12 22:24:48 +02:00
namespaces.cpp added music 2024-06-12 22:24:48 +02:00
namespaces.hpp added music 2024-06-12 22:24:48 +02:00
objects.cpp minor changes 2024-06-13 19:03:32 +02:00
objects.hpp minor changes 2024-06-13 19:03:32 +02:00
README.md Update README.md 2024-06-12 22:30:04 +02:00

Galactic-Blasters-SFML

Compile with:

g++ namespaces.cpp objects.cpp menu.cpp engine.cpp main.cpp -o game -lsfml-audio -lsfml-graphics -lsfml-window -lsfml-system -O3

Instruction:

Controls:

Start Menu:

Use up and down arrows to navigate and enter to select option. To go back press escape.

Game:

Use right and left arrows to move, press space to shoot. To pause or unpause press P key. To pause or unpause music press Q key.

Game mechanics:

Aliens:

At the beginning screen will be empty, but every 2 seconds new alien will spawn. They will keep coming until all 32 ships have been spawned. Randomly enemy ships will drop bombs - either standard or guided. Also, sometimes they will conduct kamikaze attacks, that will deal more damage.

Powerups:

Every 15 seconds powerup will appear. Depending on the type, if you manage to shoot it down you will get either additional hp point or shield, protecting you from any damage for 6 seconds.

Score:

You will get points for shooting down enemy ships and powerups, but will loose points for getting hit.

Game end

Game ends when either all the aliens are destroyed or your hp drops to 0.