A project developed as part of the 42 School curriculum. It is a simple 2D game rendered with MiniLibX, where the player collects coins and escapes the map. The bonus version includes animations, a move counter on screen, and enemies.
so_long is a small 2D game where the player moves around a map, collects all collectibles (C), and exits through the portal (E). The map is read from a .ber file and displayed using custom sprites. The project follows Norminette and includes a bonus version with enhanced features.
- Validates
.bermap files - Checks for rectangular shape and closed walls
- Requires one player, one exit, at least one coin
- Movement using
W,A,S,Dand arrow keys - Step counter printed in the terminal
- Animated sprites (player, coin, enemy)
- Enemy (
M) that moves automatically - Step counter displayed in the game window
- Game ends when player touches the enemy
Wor↑– Move upAor←– Move leftSor↓– Move downDor→– Move rightESC– Quit the game
-
make
-
./so_long maps/map1.ber
-
make bonus
-
./so_long_bonus maps/map1.ber
