This is a 42 School project. It consists in creating a little 2D game with the MiniLibX, the school's graphic library.
The purpose of the game is to obtain every collectible of the level, while avoiding ennemy attacks. You can beat the ennemies either by jumping on them or by hitting them with your hammer lost in the map. The tiniest contact can loose you the game, so be careful !
W Move up |
A Move left |
S Move down |
D Move right |
SPACE Hammer blow (bottom excluded) |
SPACE+S Jump |
TAB Display step counter |
ESC Close game |
sudo apt-get install xorg libxext-dev zlib1g-dev libbsd-dev
sudo apt-get install vlc
git clone https://github.com/il94/42_so_long so_long
cd so_long && make -j
./so_long [MAP.ber]
A map set is provided in the "maps" folder. I challenge you to complete my levels (the world 4 in particular :) ).
|
|
To be valid, a map must meet the following conditions :
- being rectangular
- being surrounded by walls
- containing only one starting position
- containing only one exit
- containing at least one collectible
- containing a maximum of one hammer
- being composed only by valid characters
- the file containing map must be .ber
By respecting the above conditions, you can create your own maps !
Being free to choose my own sprites, I used the ones from games I grew up with, namely the Mario license from the 90s and 2000s, and especially here Paper Mario 64. The same goes for sounds, added as a bonus, and the Easter eggs that can be found in the different levels. With it being my first game as well as my first graphical project, it seemed natural to me to make it a tribute to the ones that made me love the world of video games and gave me the desire to create some of my own.