This is a clone of the classic Super Mario game, implemented in Python. The project is structured with a clear separation of assets and source code, and includes a virtual environment setup for managing dependencies.
- assets/: This directory contains all the images and sound files required for the game.
- src/: This directory contains the source code for the game.
- game.py: Contains the main game logic.
- platform.py: Contains the code for the platforms in the game.
- player.py: Contains the code for the player character (Mario).
- main.py: The entry point for the game.
- requirements.txt: Lists all the dependencies required to run the game.
First, clone this repository to your local machine:
git clone https://github.com/voxold/super_mario_clone.git
cd super_mario_clone
Create a virtual environment to manage the project dependencies:
python -m venv venv
Activate the virtual environment:
-
On Windows:
.\venv\Scripts\activate
-
On macOS/Linux:
source venv/bin/activate
Install the required dependencies using pip
:
pip install -r requirements.txt
Execute the game by running the main.py
file:
python main.py
Feel free to explore the src/ directory to understand how the game logic is implemented. The assets/ directory is where all the images and sound files are stored, ensuring that the game has the necessary visuals and audio effects to provide an engaging experience.