This is a simplified version of the classic game "Super Mario" developed as part of the CS50 Introduction to Game Development course. In this game, players control Mario as he navigates through various levels, avoiding obstacles, defeating enemies, and collecting coins to reach the end goal.
Safe Player Spawning: The player is always spawned above solid ground. This ensures that the player starts the level safely and does not fall upon spawning.
Key and Lock Mechanic: Generated random-colored key and lock block that unlocks when the player collides with it. The goal post should spawn at the end of the level if the locked block is collected.
Dynamic Level Length: When the player reaches the goal post, the level is regenerated, the player is spawned at the beginning again, and the level is a little longer than before.
To run the game, ensure you have Love2D framework installed on your system. You can download Love2D from the official website.
Clone this repository to your local machine:
git clone https://github.com/najlae01/mario
Navigate to the project directory and run the game with Love2D:
cd mario
love .