This is a terminal version of the game breakout, made in python.
-
First you install required dependancies
$ pip install -r requirements.txt
-
Then you run the code
python main.py
-
If it does not seem to render properly,make your terminal window size bigger, so that the whole game screen can render on it at once
a
- move paddle left
d
- move paddle right
p
- start the game (when new map starts) and to pause and unpause the game
r
- to release ball from paddle when the paddle lock power up is active
q
- quit the game
s
- restart game after gameover
l
- go to next level
playState, pauseState and quitState all inherit from baseState
playState, pauseState and quitState all overwrite some functions of baseState
Classes and objects exist
Almost everything is abstracted, like handling ball movement and removing of bricks