Python game
Terminal Based Python game using oops concept.
Running the game:
- pip install -r coloramaversion.txt
- python3 main.py
Controls
- A to move to left
- D to move to right
- Space bar to release ball
Powerups
- Increase the speed of the ball represented by 4 .
- Thru ball represented by 5 .
- Expand paddle by 1
- Shrink paddle by 2
- Paddle grab by 6
Bricks are of five types ;- 1.Level 1 brick of green color. 2.Level 2 brick of blue color. 3 Level 3 brick of red color. 4.Exploding bricks of yellow color 5. Unbreakable bricks of black color
OOPS Concept
- Inheritence - different type of powerups and bricks are inherited from Bricks and Powerup class.
2.Polymorphism โ Init function of every child class is overrides the init function of parent class
3.Encapsulation โ Classes and objects are made
4.Abstraction - Various variables and methods are made private and some are made public.