Space 1v1
A local multiplayer space shooter game built with Python and Pygame.
Prerequisites
Python 3.10 or higher (Note: Avoid Python 3.14 experimental versions as they may not support Pygame fonts yet. Python 3.12 is recommended).
MacOS/Linux/Windows
Installation Guide
This project requires a virtual environment to manage dependencies. Follow these steps to set it up:
- Clone or Download the repository
git clone cd space1v1
- Set up the Virtual Environment (Mac/Linux)
Create the isolated environment to avoid system conflicts:
python3 -m venv venv
Activate the environment:
source venv/bin/activate
(You will see (venv) appear in your terminal prompt)
- Install Dependencies
While inside the virtual environment, install Pygame:
pip install -r requirements.txt
How to Play
Ensure your virtual environment is active:
source venv/bin/activate
Run the game:
python main.py
Controls
Edit this section based on your actual game controls:
Player 1 (Left):
Movement: WASD
Shoot: E
Player 2 (Right):
Movement: IJKL (my friends reccommended me to make changes)
Shoot: O
Troubleshooting
"Module not found" error? Make sure you have activated the virtual environment (source venv/bin/activate) before running the game.
Font error on Mac? If you see an error about pygame.font, ensure you are not using Python 3.14 (alpha). Use brew install python@3.12 and recreate your venv using that version.