Home Projects Techniques

"The Mario"

Techniques used on this project

  • SFML
  • C++

Project description

In game image of the Mario

The Mario is a video game based on the classic Donkey Kong. The evil ape is at the top of the level, throwing barrels, and Mario, starting at the bottom, has to climb the ladders to the top and touch the flag, all while avoiding the barrels. As for barrels, there are three types - normal barrels (red), fast barrels(blue) and bouncing barrels (yellow). Every time the game is beaten, you get bonus points, and the level gets progressively harder. The goal is to get as many points as possible before the final game over. Crashing into a barrel leads to a death screen, and a life is lost. When the life count reaches 0, the game is over. There are also a random amount of extra lives on every level, and new ones are generated after beating the game. This classic is fun for all ages!

The game was developed with a combination of C++ and the SFML library. The idea of the project was to put our newly developed skills in object oriented programming into practice, as well as to practice our skills in working in bigger project groups (four people, in this case). The programming was focused on classes, inheritance, and other types of relations between them. The idea is to keep the responsibilites in each class clear and well defined, meaning that each object in the game can be treated seperately. For instance, a barrel can exist without the level-class, the boss throws barrels, but has no idea what happens to them once they leave his hands. The different objects can easily be used to build and rebuild different types of levels and challenges, without being dependent on each other to work.