This project is a simple space shooter game coded and designed in C++ language using SFML (Simple and Fast Multimedia Library) graphics mode. The game is inspired by classic arcade shooters where players control a spaceship to destroy enemy ships.
- Player-controlled spaceship with smooth movement. (60-120-144-240...Hz)
- Randomly generated enemy spawn positions.
- SFML library installed on your system. You can download it from here.
- Clone the repository to your local machine:
- Navigate to the project directory:
- cd Project_SpaceShooterGame-.-SFML
- Compile the source code using GCC or any other C++ compiler:
- gcc main.c -o space-shooter -lsfml-graphics -lsfml-window -lsfml-system
-
Run the compiled executable: ./space-shooter
-
Use the W and S to move the spaceship.
-
Press the spacebar to fire bullets at enemy ships.
-
Avoid collisions with enemy ships.
-
Survive as long as possible.
-
If there is a collision or you fail to hit the enemy, the game is over.
This project is licensed under the MIT License - see the LICENSE file for details.