Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pratishtha-abrol/bounce-arcade-game
a terminal based game built in python with OOPS concepts
https://github.com/pratishtha-abrol/bounce-arcade-game
brick-breaker oop-principles python terminal-game
Last synced: 18 days ago
JSON representation
a terminal based game built in python with OOPS concepts
- Host: GitHub
- URL: https://github.com/pratishtha-abrol/bounce-arcade-game
- Owner: pratishtha-abrol
- License: mit
- Created: 2021-02-06T12:00:53.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-09-11T12:42:13.000Z (over 1 year ago)
- Last Synced: 2024-10-24T20:07:04.896Z (2 months ago)
- Topics: brick-breaker, oop-principles, python, terminal-game
- Language: Python
- Homepage:
- Size: 1.15 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bounce-arcade-game
a terminal based game built in python with OOPS concepts## Libraries used
> Numpy
> Colorama
> Os
> Time
> Random
> Select
> Sys
> Terminos
> Atexit## Keyboard Controls:
> - "a" : moves left
> - "d" : moves right
> - " " : release ball in case of paddle grab boost
> - "p" : skip level## Boosts:
Note that each boost, except the ball multiplier functions for exactly 10 seconds, after which the game state neutralises.
- Ball Multiplier:
Multiplies the number of balls already present on screen, the main ball retaind white colour, losing this will result in loss of a life. The other balls stay on screen as long as they do not pass the paddle possition- Fast Ball:
Makes the speed of the ball in y direction twice the original, thus increasing the speed- Thru ball:
Allows ball to break bricks and pass through them, irrespective of the strength- Paddle Grab:
Sticks the ball to the paddle on collision, allows to position, and releases on pressing " ". The released ball follows the trajectory it would have had it not been grabbed.- Expand and Shrink Paddle:
Increase and decrease paddle length by 4, respectively- Paddle Shoot:
Allows paddle to shoot bullets## Levels:
3 levels. The last level is the super level. Press 'p' to skip levels.
## Exploding Bricks:
Some bricks on the screen may explode on collision, breaking those directlt adjacent to it.
## Falling bricks:
Bricks fall one unit down every 10 seconds into the game. Reset on level completion
## Collision rules:
The ball changes position depending on the place of colision, how far it is from the center of the object it is colliding with.
Bricks with strength 3, blue, require 3 hits to break, the ones with strength 2, green, require 2 and the magenta ones require just 1.
The unbreakable bricks, the white ones, will not break, irrespective of the number of hits, and can be broken only by an exploding brick.