so_long
is a simple 2D game developed in C using the MLX42 library provided by Codam College. The objective of the game is to navigate through a maze, collect all the collectibles, and reach the exit.
- 2D graphics using MiniLibX
- Keyboard controls for movement
- Collectibles and exit points
- Basic animation engine
- Dijkstra pathfinding
- Viewport rendering
- Clone the repository:
git clone https://github.com/H-R-B-Y/So_Long.git so_long
- Navigate to the project directory:
cd so_long
- Clone MLX42 dependency
cd lib git clone https://github.com/codam-coding-college/MLX42 cd ..
- Compile the project:
make
Run the game with the following command:
./so_long.out {map file}
W
- Move upA
- Move leftS
- Move downD
- Move rightESC
- Pause Menu / Exit upon winningArrow key
- Navigate pause menuEnter
- Select for pause menu
If you want to see funny pathfinding algo go brrr use run compile with this:
make re DEBUG="debug" PRINT_DELAY="1000"
Then you can run ./so_long.out {map file}
and it will do the funny path finding thing :P
Idk whatever MLX42 uses