Small 2D game project for 42 (Core Curriculum).
The player must collect all collectibles and then reach the exit.
- Language: C
- Graphics: MLX42
- Build:
make - (Optional) Uses
libft(if your project does)
make(Optional, only if available)
make clean
make fclean
make re
## Usage
Example:
```bash
./so_long maps/map.berW,A,S,D(or arrow keys): moveESC: quit- Window close button: quit
The map must be a text file with the .ber extension and a rectangular shape.
Allowed tiles:
1: wall0: empty spaceP: player start (exactly 1)E: exit (exactly 1)C: collectible (at least 1)
The program must reject maps that do not follow the rules, including (non-exhaustive):
- The map is not rectangular.
- The map is not surrounded by walls (
1). - Missing or invalid number of required elements (
P,E,C). - The map contains invalid characters.
- The map is not solvable (player cannot reach all collectibles and the exit).