Skip to content

milosnowcat/mario.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mario.py

Mario Party

Installation

You can download for windows without python here!

To run the Mario.py project, you'll need to follow these installation steps:

  1. Python: Ensure that you have Python 3.x installed on your system. You can download Python from the official website.

  2. Clone the GitHub repository to your local machine using the following command:

    git clone https://github.com/milosnowcat/mario.py.git
  3. Pygame: The project uses the Pygame library for graphics and game development. Install Pygame using pip:

    pip install -r requirements.txt
    
  4. Assets Credits:

  5. Running the Game: To run the game, execute the main.py script using Python:

    python main.py
    
  6. Controls: The game can be controlled using the keyboard:

    • Use the Spacebar to make the character jump.
    • Use the Left Arrow Key to move left.
    • Use the Right Arrow Key to move right.

Usage

Overview

Mario.py is a simple 2D platformer game featuring a character that can jump and move across a level while collecting coins and avoiding obstacles.

Main Menu

  • When you start the game, it will show a main menu with the following options:
    • Start: Click the "Start" button to begin the game.
    • Exit: Click the "Exit" button to exit the game.

Gameplay

  • Once you start the game, you'll control the character to navigate through levels.
  • Use the keyboard controls:
    • Spacebar: Jump.
    • Left Arrow Key: Move left.
    • Right Arrow Key: Move right.
  • Collect coins to increase your score.
  • Avoid spikes and water, as they lead to a game over.
  • Reach the chest to complete a level and proceed to the next one.

Game Over

  • If your character collides with spikes or water, it's game over.
  • You can click the "Restart" button to try the level again.

Winning

  • After completing all available levels, you'll see a "You Win!" message.
  • You can choose to start over from the first level by clicking the "Start" button again.

Scoring

  • Your score is displayed at the top left of the screen.

Sound Effects

  • The game includes sound effects for actions like jumping, collecting coins, and dying.

Credits

  • The game was created using the Pygame library.
  • Assets like images, audio, and fonts were used to enhance the gaming experience.

This concludes the installation and usage documentation for the Mario.py project. Enjoy playing the game!