so_long
A 2D game, from scratch.

A 2D game in C with MiniLibX: collect every item on a map and reach the exit, with map validation, keyboard controls and a move counter.
The problem
A first real graphics program: open a window, react to the keyboard, draw sprites, and refuse any map that can't be finished.
How I built it
- 01Reads a .ber map and checks that it is rectangular, closed by walls, and has one start, one exit and at least one collectible.
- 02Checks that a valid path to every collectible and the exit actually exists.
- 03WASD or arrow-key movement, a move counter, and a clean exit on ESC or the window's close button.
Key takeaways
- — Event loops and window management.
- — Validating input before trusting it, including path-finding.
so_long was built as part of the software engineering curriculum at 1337 Coding School (42 Network, UM6P), where every project is built from scratch and reviewed by peers.