1.7 KiB
1.7 KiB
Asteroids
Overview
Asteroids game is built using the Pygame library, which provides tools for creating 2D games in Python.
Prerequisites
To run the game, ensure you have the following installed on your system:
- Python 3.13 or later: Install the latest version of Python from the official Python website.
- Pygame: The game relies on Pygame for graphics and input handling.
Setting Up the Environment
To set up the game environment, follow these steps:
-
Create a virtual environment:
python3 -m venv venvThis command creates a virtual environment in the
venvdirectory. -
Activate the virtual environment: On macOS or Linux:
source venv/bin/activateOn Windows:
venv\Scripts\activate -
Install Pygame: With the virtual environment activated, install Pygame:
pip3 install pygame
Running the Game
To start the game, ensure the virtual environment is activated, then run the following command:
python3 asteroids.py
Troubleshooting
- Ensure the virtual environment is activated before running the game or installing dependencies.
- If you encounter issues with Pygame installation, ensure your Python version is compatible with the latest Pygame release.
- Check that all game files, including
asteroids.py, are in the correct directory.
License
This project is distributed under the MIT License. See the LICENSE file for details.
Contributions
Contributions are welcome! Feel free to fork the repository and submit pull requests.
Credits
- Developer: Joaquin Gottlebe
- Built With: Pygame and Python