This project is a small 2D game with MLX42. It's a part of 42 Core curriculum.
The program accepts a map as an input and creates a 2D game based on it.
1111111111111
10010000000C1
1000011111111
1P0011E000001
1111111111111
The map has to be constructed with 3 components: walls, collectibles, and free space.
The map can be composed of only these 5 characters:
- 0 for an empty space,
- 1 for a wall,
- C for a collectible,
- E for a map exit,
- P for the player’s starting position.
/maps folder already contains many pre-created maps
- Clone the repo
- Inside the repo run
maketo create an executable (aka the game) - Run
./so_long [map]to open a game with a pre-created map OR./so_longwhere you can write your own map to stdin
