A solo entry for the "Cops" themed PyWeek 31 week-long game jam contest
🏆 Python Prison tied for first place in the individuals category! 🏆
Entry page: https://pyweek.org/e/pythonprison
Python Prison is a puzzle game where you have to bribe cops and write Python programs to break out of jail!
To play, download the files and run these commands in terminal:
pip install -r requirements.txt
python run_game.py
Or possibly, depending on your Python installation:
pip3 install -r requirements.txt
python3 run_game.py
The game was built using in Python 3.9.2 and has been tested with 3.8.5 and 3.9.4 on Windows 10 and Linux Mint.
The only requirement is pygame version 2.0.1 or higher.
The game has not been tested on Mac OS.
- WASD/Arrows - move
- Shift - sprint
- Space - pull
- 1 - set the top left of the blue execution region
- 2 - set the bottom right of the blue execution region
- 3 - set the top left of the red output region
- 4 - set the bottom right of the red output region
- R - run the code contained in the blue execution region
- Esc - reset level
- M - toggle mute
- I - toggle info
- F9 - main menu
- F10 skip level (cheating!)
- F12 skip to sandbox (cheating!)
A full playthrough of the game be seen at: https://www.youtube.com/watch?v=_z8lsIEQa9I
- Simple Slum font - https://www.dafont.com/simple-slum-g.font
- PT Sans font - https://www.1001fonts.com/pt-sans-font.html
- Oxygen Mono font - https://fonts.google.com/specimen/Oxygen+Mono
- "Blip rhythm loop.wav" by djfroyd - https://freesound.org/people/djfroyd/sounds/331679/
- "Party Pack, Horn Coil 01, Long, 01.wav" by J Inspector - https://freesound.org/people/InspectorJ/sounds/484267/
- PyGame - https://www.pygame.org