Skip to content

Проект игры "Mario" на библиотеке SFML Этот проект представляет собой простую игру "Mario" на языке C++ с использованием библиотеки SFML.

Notifications You must be signed in to change notification settings

javamaks/Mario-SFML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mario-SFML

SFML Mario Game Project This project is a simple C++ Mario game using the SFML library.

Game project "Mario" on the SFML library

This project is a simple C++ Mario game using the Simple and Fast Multimedia Library (SFML). The game is designed in the classic platformer style, where the player has to control the character Mario and overcome obstacles, collect coins and save the princess.

Requirements

To run and build the project, you will need the following:

  • C++ compiler (like GCC or Clang)
  • SFML library (version 2.5.1 or higher)

Installation

  1. Clone the repository using the command:

    git clone https://github.com/your_username/mario-game.git
    
  2. Change to the project directory:

    cd mario game
    
  3. Build the project using the build command of your C++ compiler. For example, for GCC:

    g++ main.cpp -o mario -lsfml-graphics -lsfml-window -lsfml-system
    

    Note: Make sure the SFML library paths are correct.

  4. Run the assembled game:

    ./mario
    

Management

  • Left Arrow: Move Mario left
  • Right Arrow: Move Mario right
  • Space: Jump Mario

Project structure

  • main.cpp: The main project file that contains the main() function and handles the main game loop.
  • assets/: Directory containing game assets such as textures, sounds, etc.
  • include/: Directory containing project header files.
  • src/: Directory containing project source files.
  • README.md: The file you are currently reading, containing a description of the project and instructions.

##Javamaks

Project author: Javamaks

Thanks

Additional Information

For more information

For game development and the use of the SFML library, you can visit the following resources:

About

Проект игры "Mario" на библиотеке SFML Этот проект представляет собой простую игру "Mario" на языке C++ с использованием библиотеки SFML.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages