This is a 42 School's project. The project consists in creating a little 2D game with the MiniLibX, the school's graphic library. I decided to use some classic rpg sprites which kinda gives "The legend of Zelda" vibes.
In order to complete the game, players must avoid all enemies and acquire all of the collectibles on the map before taking the exit. ennemies can be vanquished by using your sword.
./so_long [MAP.ber]
HOW TO PLAY | |
---|---|
Z | Move up ⬆️ |
Q | Move left ⬅️ |
S | Move down ⬇️ |
D | Move right ➡️ |
F | Use your sword ⚔️ |
ESC | Close the game ❌ |
To be valid, a map must meet the following conditions :
- be rectangular
- surrounded by walls
- contain only one starting position
- contain only one exit door
- contain at least one collectible
- Have a valid path