Installation
Installation
This guide walks you through setting up the Parkour Game for development.
Prerequisites
- Python 3.10+ - Download from python.org
- pip - Python package manager (included with Python)
- Git (optional) - For version control
Setting Up the Environment
1. Create a Virtual Environment
It’s recommended to use a virtual environment to isolate dependencies:
# Navigate to the project directorycd infoproj
# Create virtual environmentpython -m venv parkour
# Activate it (Linux/macOS)source parkour/bin/activate
# Activate it (Windows)parkour\Scripts\activate2. Install Dependencies
Install the required packages:
pip install pygame pygame-widgets pyperclipFor the level editor, also install PyQt6:
pip install PyQt63. Verify Installation
Test the installation by running the game:
cd src/codepython main.pyYou should see the title screen appear.
Project Structure After Setup
infoproj/├── parkour/ # Virtual environment (created by you)├── src/│ ├── code/ # Source code│ └── resources/ # Game assets├── data/ # Runtime data (settings, worlds)├── levels/ # Legacy levels└── docs/ # DocumentationRunning the Game
Main Game
cd src/codepython main.pyLevel Editor
cd editorpython main.pyBuilding Executables
The project includes PyInstaller specs for creating standalone executables:
# Build the gamecd packaging./build_game.sh
# Build the editor./build_editor.shTroubleshooting
”pygame not found” Error
Make sure your virtual environment is activated:
source parkour/bin/activate # Linux/macOSDisplay Issues on Linux
If you have display issues, try setting the SDL video driver:
export SDL_VIDEODRIVER=x11python main.pyFont Loading Errors
Ensure the assets folder is in the correct location:
src/resources/assets/fonts/font.ttfshould exist
Next Steps
- Quick Start - Start modifying the game
- Adding Characters - Create new playable characters
- Creating Levels - Design your own levels