Skip to content

Repository files navigation

PythonLearningGame

Game development by the PythonLearning Reddit community.

I want your help to make this a fun Python game. It's purely educational, an opportunity to learn about:

  • Python
  • (quick and dirty) Object Oriented Programming
  • PyGame
  • Teamwork using GIT

This should be accessible for Python students who are comfortable with loops, functions, and classes.

PythonLearningGame

This GIF was recorded at branch/tag 'starting_point'. Many following commits have developed the game, but if you want to go back to the beginning, go here.

Active Forks

Getting Started

  1. First play the game.
  2. Then see instructions to make and submit changes.

Download

Security Warning

We review submitted code changes for safety, but we can't guarantee no malicious code was introduced. We are not responsible for any damages as a result of running code in any of these forks. For proper safety, run this game:

  1. In a Docker container or virtual machine (best isolation)
  2. In a separate user account with limited permissions
  3. After reviewing the source code yourself

Install GIT

First install GIT:

Clone a Fork

In a terminal:

git clone https://github.com/bterwijn/PythonLearningGame.git  # or other fork

Setup

This will:

  1. Create and activate a virtual environment
  2. Install all dependencies

on Linux/MacOS

Open a terminal in the project folder and run:

bash setup.sh

on Windows

Double-click setup.bat in the project folder.

If double-clicking doesn't work:

  1. Open Command Prompt (cmd.exe)
  2. Navigate to the project folder: cd path\to\PythonLearningGame
  3. Run: setup.bat

Play

Run the game:

python main.py

Deactivate Virtual Environment

When you're done:

deactivate

Making and Submitting Changes

See these instructions to make and submit changes to this game. Happy coding!

About

Game development by PythonLearning Reddit community

Resources

Stars

9 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages