Mario created with Object-Oriented Programming in C++ using SFML. Coded by Nijiya, Rubika and Sadhana for OOP Project BCT(II/I).
This project is a recreation of the classic platformer game Mario. It aims to capture the essence of the beloved Mario game, offering players an opportunity to relive the excitement of running, jumping, and navigating through a unique level while facing challenges and enemies.
The game is controlled using Keyboard Arrows. (Up, Down, Left, Right)
- Open Mario.sln (contained in the root folder) in Visual Studio.
- Choose the build configuration "Debug" and the target platform "x64".
- Build the solution by clicking on the "Build" menu and selecting "Build Solution" (or press Ctrl+Shift+B).
- Click on "Local Windows Debugger", or open Mario.exe located at "/x64/Debug".
Every number corresponds with an image block taken from template. Game loads map from assets/array.txt. User can open file and edit blocks in the desired way. Number of columns can be increased (longer map) or decreased (shorter map), adding additional row won't change map in any way.
Mobs are built based on assets/mobs.txt file. Way mobs are stored: [mob_name] [x-coordinates], [y-coordinates] Available mobs names are: Turtle, Spikey, FlyTur, Bonus.
Game class is the main game controller. Responsible for adding mobs, triggering tileMap class. map managament, updating objects and displaying menu if needed. Takes care of camera movements (cameraMovement()).
Every object belonging to entity class is kept in std::vector mobs, loaded from assets/mobs.txt file.
GameInfo class is responsible for counting user score, amount of coins gathered and time passed. Result is saved into the text file after finishing the game.
Class Menu loads 3 best results after choosing option Best Results in menu.