BrkOut
![forthebadge made-with-python](http://ForTheBadge.com/images/badges/made-with-python.svg)
![Gitter](https://img.shields.io/gitter/room/:user/:repo.svg)
A prison escape game with a blend of brick breaking gameplay and innovative implementation of the same to get the look of an escape.
Screenshots and Gameplay
When you decide to escape
![alt text](https://github.com/thealphadollar/brkout/raw/master/game/assets/HomeScreen.png)
As you fight your way through the unbreakable wall
![alt text](https://github.com/thealphadollar/brkout/raw/master/game/assets/MainGame.png)
You realise that escape might not be as easy as you thought
![alt text](https://github.com/thealphadollar/brkout/raw/master/game/assets/LosingScreen.png)
And when you finally taste the free air after numerous attempts
![alt text](https://github.com/thealphadollar/brkout/raw/master/game/assets/WinningScreen.png)
Prerequisite
Python2 or Python 3 are the default languages needed for playing this game [on Linux], to check which version of Python you have, type the following in terminal:
python --version
Downloading Brkout and Playing
You can use the below commands.
sudo apt-get install python-pip
pip install --upgrade pip
pip install brkout
If this does not work, then
sudo -H pip install brkout
For more info, visit Pygame download page
Developing on the Game
On Linux
- Clone the branch on your local machine:
git clone https://github.com/thealphadollar/brkout.git
- Install pipenv (
pip3 install pipenv
) and then install all dependencies (pipenv install --dev
).
- Make the required changes
- Test the game by running
python3 -m game
from the repository's directory.
- Send a Pull Request
On Windows
- Clone the repository by the method appropriate for the Git interface you are using.
- Install Python 3.x
- Install the future library
pip install future
- Start the game using
python -m game
- pip install any missing libraries
- Always pull changes from the main repo before adding your changes
git pull upstream master
- Create a new branch to work on feature
git branch <feature_branch>
- Make it the working branch
git checkout <feature_branch>
- Commit your changes
- Merge your feature branch to the master branch when all the changes are done
git checkout master
git merge <feature_branch>
- Push your changes to your fork by
git push origin master
- Create a new Pull Request on the main repo
- Make any required changes
- When the PR is merged, repeat #6 - #14
Gameplay Help
- The game can be controlled using arrows keys or the 'w', 'a', 's' and 'd' keys.
- Spacebar and enter key both act as the selection key.
- Spacebar or escape key can be used to pause the game.
- Choose the required difficulty level by clicking on it.
- Reset the highscore, if needed, by clicking on the 'reset' icon.
- The game can also be played with a Joystick, which has to be plugged in before you
launch the game.It works well with AMKETTE game pad but any standard game pad would also work.
Powerups
Currently 5 types of powerups are in the game. Go over a powerup to pick it up. Currently active powerups are shown in top left of the screen.
- Double Damage: Doubles the damge caused to bricks
![double_damage](https://user-images.githubusercontent.com/6888341/50610393-d2a1ad00-0ef8-11e9-87a1-3d9ad419bc1a.png)
- Double Power: Sriker's power is doubled
![double_power](https://user-images.githubusercontent.com/6888341/50610396-d7666100-0ef8-11e9-9fe9-e2f85d5839e3.png)
- Double Score: Score is doubled
![double_score](https://user-images.githubusercontent.com/6888341/50610400-da615180-0ef8-11e9-8b89-8388dc475af5.png)
- Double Speed: Ball's maximum speed is doubled
![double_speed](https://user-images.githubusercontent.com/6888341/50610404-ddf4d880-0ef8-11e9-9384-e570aebafc4e.png)
- No Friction: Friction is removed temporarily
![no_friction](https://user-images.githubusercontent.com/6888341/50610407-e0573280-0ef8-11e9-9c33-27492e236c54.png)
Enjoy The Game
Contribute
Please read CONTRIBUTING.md guide to know more.