How to build
(in the project main directory)
mkdir build
cd build
cmake ..
make install
cd ../bin
./arkanoid
How to run
./arkanoid
./arkanoid -l=5
(optional) "-l=<level>" (with <level> a number): The level the Arkanoid game will start with. (choose from 1 up to 5)
Gameplay
The goal of the game is to clear every block in the current level by hitting it with the Ball. (Note: some blocks have special effects) However, you should try to NOT let the ball hit the bottom of the screen by moving the paddle horizontally.
If you manage to clear a level, the next level will be loaded. You beat the game if you can clear every level.
Good luck and have fun!
Controls
-
Spacebar: shoot the ball after start game or after death
-
Left arrow: move the player to the left
-
Right arrow: move the player to the right
-
Escape: ONLY press it if the game bugs out and is unplayable; resets player and ball
Blocks
If multiple effects are activated, the first one will stay active and the second one will be discarded; if both are the same, the duration is reset.
-
Blue block: when hit, gets destroyed (arkanoid::Block)
-
Green block: when hit, gets destroyed + speed up the player by factor 2 for 3 seconds (arkanoid::PlayerSpeedBlock)
-
Yellow block: when hit, gets destroyed + speed up the ball by factor 1.5 until player hits the ball or misses the ball (arkanoid::BallSpeedBlock)
-
Purple block: when hit, gets destroyed + slow down the ball by factor 0.5 until player hits the ball or misses the ball (arkanoid::BallSpeedBlock)
-
Red block: when hit, gets destroyed + make the ball invisible for 2 seconds (arkanoid::InvisBlock)
Remarks
-
If the program is runned from a different place then in "bin", you should copy the "data" folder to the directory of the executable.