A small and simple 2D game heavily inspired by the boardgame Root. It is built in C using MLX42. You play as a Vagabond collecting items and finding the exit. Originally made as so_long project from the 42 curriculum.
Collect all items and escape into the pine forest to finish the game!
Dependencies: MLX42 and its requirements (GLFW, cmake).
make # builds the project
make clean # removes object files
make fclean # removes object files and binary
make re # rebuilds from scratchThe Makefile detects your OS and builds accordingly — Linux and macOS are both supported.
Run from the project root:
./so_long maps/your_map.ber| Key | Action |
|---|---|
W / ↑ |
Move up |
A / ← |
Move left |
S / ↓ |
Move down |
D / → |
Move right |
ESC |
Quit |
Maps use .ber files. Rules:
- Rectangle shape, fully enclosed by walls (
1) 1— wall0— pathP— starting position (exactly one)E— exit (exactly one)C— collectible (at least one)
Example:
11111
1P0C1
100E1
11111
Note: Commit history has been removed for privacy. Originally the project was built in July 2025 and it took one month.
Vagabondje is a fan project and is not affiliated with or endorsed by Leder Games. All Root intellectual property belongs to its respective owners.