Skip to content

plutopu/vagabondje

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vagabondje 🎒

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.

Game window Collect all items and escape into the pine forest to finish the game!


Build

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 scratch

The Makefile detects your OS and builds accordingly — Linux and macOS are both supported.

Run

Run from the project root:

./so_long maps/your_map.ber

Controls

Key Action
W / Move up
A / Move left
S / Move down
D / Move right
ESC Quit

Map format

Maps use .ber files. Rules:

  • Rectangle shape, fully enclosed by walls (1)
  • 1 — wall
  • 0 — path
  • P — 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.

About

A small game inspired by the board game Root. Originally a so_long project from the 42 curriculum.

Resources

Stars

Watchers

Forks

Contributors