A small 2D game in C built with MinilibX.
The goal is to collect all the eggs and reach the exit chest.
This project covers keyboard event handling, texture rendering and map parsing.
- OS: Linux or MacOS
- make
- cc
- MinilibX (use
make mlxto clone it) - X11 or xquartz on MacOS (to use minilibx-linux)
# 1. Clone MinilibX from 42 repo
make mlx
# 2. Compile
make
# 3. Start game
./so_long <map.ber>
# e.g.: maps/subject.ber| Key | Action |
|---|---|
| W | Move forward |
| A | Move left |
| S | Move backward |
| D | Move right |
| ESC | Exit game |
make # compile
make mlx # clone mlx
make clean # remove objects
make fclean # remove objects and executable
make re # clean and recompile