So Long is a small 2D game project created using the MiniLibX library. The objective is to collect all items on a map and escape via the shortest route.
- The player controls a character on a grid-based map.
- The goal is to collect all "collectibles" (C) and reach the "exit" (E).
- The player must avoid walls (1).
- Movement is controlled via keyboard (WASD or Arrow Keys).
This project uses MiniLibX for rendering graphics and handling window events.
-
Compile the game:
make
-
Run the game with a map file:
./so_long maps/map.ber
The map must be a .ber file containing:
1: Wall0: Empty spaceP: Player start positionC: CollectibleE: Exit