Skip to content

tushar994/brick-breaker-terminal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

brick breaker terminal

This is a terminal version of the game breakout, made in python.

How To Run

  • 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

Controls

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

Features

Inheritance

playState, pauseState and quitState all inherit from baseState

Polymorphism

playState, pauseState and quitState all overwrite some functions of baseState

Encapsulation

Classes and objects exist

Abstraction

Almost everything is abstracted, like handling ball movement and removing of bricks

Screenshots

screenshot1 screenshot2

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages