This is a primitive Breakout clone in Python that I made to learn more about curses.
To play just do:
$ git clone https://github.com/vesche/breakout-curses
$ cd breakout-curses
$ python breakout.py
Use the left and right arrow keys to move the paddle, and the up arrow to launch the ball.
On most Linux terminals the keyboard auto repeat rate is going to be too high and will make playing the game difficult. To see what your current settings are run xset -q
and look for the values auto repeat delay and repeat rate.
I recommend you adjust like so for playing: xset r rate 100
- collision on top of blocks
- increase paddle speed (with bounds checking)