discretegames / PythonPrison

Personal entry to the PyWeek31 game jam

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python Prison by discretegames

A solo entry for the "Cops" themed PyWeek 31 week-long game jam contest

🏆 Python Prison tied for first place in the individuals category! 🏆

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.

Controls

  • 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!)

Playthrough Video

A full playthrough of the game be seen at: https://www.youtube.com/watch?v=_z8lsIEQa9I

Python Prison demo gif

Resources used:

About

Personal entry to the PyWeek31 game jam

License:MIT License


Languages

Language:Python 100.0%