A simple 2D game built in C using MiniLibX โ collect, escape, and survive the maze.
so_long is a 42 School project that involves building a tile-based 2D game in C. The player moves around a map, collects all collectibles, and reaches the exit. The game is rendered using the MiniLibX graphics library, and the map is parsed from a .ber file.
The project teaches core concepts in graphics rendering, keyboard event handling, custom map parsing, and basic game loop logic.
- Graphical rendering with MiniLibX
- Real-time keyboard movement
- Map reading and validation from
.berfiles - Collectibles and exit goal
- Wall collision and path restriction
- Bonus: enemies, animations, and move counter
W/โโ Move upS/โโ Move downA/โโ Move leftD/โโ Move rightESCโ Quit the game
make
./so_long maps/level1.ber- 2D graphics rendering with MiniLibX
- Event-driven programming and game loops
- Parsing and validating grid-based maps
- Collision detection
- Modular game architecture in C
- Handling textures and sprite animation
- Manual memory management