The classic brick breaker game in terminal from scratch without any special libraries such as pygame. It has 3 levels where the final level is the boss level with a UFO!
-
Installation
pip3 install -r requirements.txt -
Execution
python3 main.py
Ato move the paddle left.Dto move the paddle right.Spaceto release the ball from the paddle.Qto quit the game.Nto skip a level.
- You get 3 lives in the game.
- Increase your score by breaking bricks.
- Brick Color Scheme:
- Green: Breakable but full health brick.
- Orange: Breakable but half health brick.
- Red: Breakable but quarter health brick.
- Magenta: Unbreakable brick.
- Blue: Exploding brick.
- Special rainbow brick retains/fixes on the health level it has when ball collides with it.
- Hitting a green brick brings it to orange level. Orange turns to red. Red breaks/disappears.
- Hitting an exploding brick makes it explode and directly break any other bricks close to it including unbreakable bricks.
- Powerup Scheme:
- "<=>" - Paddle Expand: Paddle width increases
- ">=<" - Paddle Shrink: Padd width decreases
- "2xO" - Ball Multiplier: Number of balls doubles
- ">>>" - Fast Ball: Ball speed increases
- "XXX" - Thru Ball: Ball can break any brick(even unbreakable) in 1 shot
- "|_|" - Paddle Grab: Ball sticks to paddles when collides with paddle.
- "^_^" - Paddle Shoot: Paddle periodically shoots a pair of bullets with strength of a normal ball(no special effects such as "Thru Ball").
- "<O>" - Fire Ball: Ball that produces exploding effect on any brick it touches, i.e, all neighboring bricks are also destroyed.
- The above powerups can be active simultaneously in any combination as well.
- Each powerup lasts for about 15 seconds.
- The game ends when player breakes all the breakable bricks in all the levels or loses all lives.
- The lesser the time taken per level, the higher the final score will be!
- Bricks begin to move down everytime ball collides with paddle after a certain time limit is reached.
- UFO in boss level drops bombs periodically. When a bomb collides with the paddle, the player loses 1 life.