berfinduman / Mario-Game

Create a Mario Game using C++ Sfml Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mario-Game-

Mario Game with Bonuses

Introduction

This is a Mario game with additional bonus features developed using the SFML library. The game was created as part of a project to gain practical experience with object-oriented programming (OOP) principles.

Team Info

  • Team Name: Jan10
  • Team Members:
    • Berfin Duman
    • Talha Mert İnözü

Getting Started

To run the game, follow these steps:

  1. Clone the repository.
  2. Open the solution file and build the project.
  3. Run the game in debug mode (x86) or run the executable in the debug directory.

Quick Start

If you are only interested in the game, you can experience the game by downloading this drive link and running the .exe file: https://drive.google.com/drive/folders/1j6GRVWAmUc8vaVmoRPlddaqhtfD-RUcE?usp=sharing

Implementation

The project consists of several classes, each responsible for different aspects of the game. Here's an overview:

  1. Main: The main class responsible for starting the game.
  2. Menu: Handles the game menu and user interface.
  3. Game: The core game class that manages game logic, including Mario, Turtle, and bonuses.
  4. Object: A base class with common functions shared by Mario and Turtle.
  5. Mario: Class representing the player character, Mario.
  6. Turtle: Class representing the enemy character, Turtle.
  7. Scoreboard: Manages the game's score and player lives.

Gameplay

As we are familiar with, it is played with the arrow keys of the keyboard. Mario has 3 lives and he wins if he kills 5 turtles before they run out of lives, otherwise he loses the game and you are directed to the main screen.

Dependencies

  • SFML Library (This game was developed using Sfml library 2.5.1 version.)

Discussion

In this section, you can discuss any challenges faced during development, future improvements, or any interesting technical details about the project.

Libraries

https://www.sfml-dev.org/tutorials/2.6/

License

MIT License.

About

Create a Mario Game using C++ Sfml Library

License:MIT License


Languages

Language:C++ 93.2%Language:CMake 3.1%Language:CSS 2.3%Language:JavaScript 1.0%Language:GLSL 0.5%