https://github.com/bitwizeshift/space-breakers
A Space Invaders-meets-Brick Break game I created with SDL2.
https://github.com/bitwizeshift/space-breakers
Last synced: 3 months ago
JSON representation
A Space Invaders-meets-Brick Break game I created with SDL2.
- Host: GitHub
- URL: https://github.com/bitwizeshift/space-breakers
- Owner: bitwizeshift
- License: mit
- Created: 2016-02-01T19:40:45.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2021-10-31T05:22:05.000Z (about 4 years ago)
- Last Synced: 2024-12-28T17:14:04.368Z (about 1 year ago)
- Language: C++
- Size: 55.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SDL2 Space-Breakers
This is a small Space-Invaders-meets-Brick Break game I created for fun.
It's written in C++11 using SDL2 for rendering and graphics. The object of the
game is simple; survive while destroying the invaders. The invaders will shoot
projectiles, and it is your job to attempt to deflect them by bouncing them off
the paddle and back at them. You gain points for properly deflecting attacks and
destroying invaders.
You begin with 10 health, and slowly lose it each time you miss a projectile.
At the end of each level, you earn back 2 times the level difficulty life back
in preparation for the next level (i.e. if you pass level 1 you get 2 health,
if you pass level 2 you get 4 health, etc).
Points are also multiplied by the level.

## Controls
* Left or A: Move paddle left
* Right or D: Move paddle left
* ESC: Pause / Unpause
* Shift: Move faster
## Compilation
### Dependencies
This project requires [SDL2](https://www.libsdl.org/) to compile along with the
additional components `SDL2_ttf`, `SDL2_mixer`, and `SDL2main`.
#### Ubuntu
On Ubuntu, this can be installed with
```bash
sudo apt install -y libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev
```
### Building
The project can be built with CMake by generating a project followed by building
it:
```bash
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=""
cmake --build .
```