My the first game ever written :D.
This is a simple Arkanoid game written in C++ using Framework library based on SDL2 library. All formulas and algorithms are described in the INFO folder. Also, there are demo videos.
- If ball hits the brick, it(brick) will be destroyed.
- If ball hits the paddle, it(ball) will bounce back.
- If ball hits the bottom of the screen, the game is over - LOOSE.
- If all bricks are destroyed, the game is over - WIN.
- After win your score will be saved in the next game.
- After lose your score will be reset.
- Game restarts after pressing any key.
- Each block has 10 points.
- Destroying 3 blocks in a row (means that the ball was not touching the player’s platform) gives you 30 points for each block.
- If orange block is destroyed, he "explodes" and destroys all blocks around him.
- Install SDL2 library
- Install SDL2_image library
- Clone this repository
- Go to the root of the repository
- Go to the Framework folder
- Run
cmake.
and thenmake
- Go to the root of the repository
- Run
cmake .
and thenmake
./Arkanoid
or you can specify screen width and height./Arkanoid 800 600
- Voilà! You have the game!