so_long_play_count.mp4
This project aims to create a basic 2D game using the mlx library, where a character must collect all the collectables in the game and exit throught the exit point.
- The game must follow a set of rules.
- If any of these rules don't comply, a a custom error message must be displayed in the terminal.
- When the game finishes, a custom message must be displayed in the terminal.
- The number of moves must be displayed in the terminal.
- The makefile must create the executable so_long, which will receive a map as the only argument. This map must be a .ber filetype. When the
- The map should be comprised of 1s (wall), 0s (free path), a P (player), an E (exit) and Cs (Collectables).
- There must be 1 player (P) - no more, no less.
- There must be 1 exit (E) - no more, no less.
- There must be at least 1 collectable (C).
- The map must be rectangular shaped.
- The map must be closed, surrounded by walls
- The collectables and the exit must be accessible to the player.
The goal is for the player to collect all the collectables on the map before going to the exit point.
- Checking if there is a map.
- Reading and loading the map.
- Checking for basic map errors.
- Checking for access errors.
- Starting the game.
- Playing the game.
- Closing the game.
Super Kiwi is a jolly nice cat thal loves to eat kiwis and playing in cardboard boxes. He must collect all the kiwis in the game before getting to the open box!
- Download the zipped folder;
- Run < make > to compile;
- Run < ./so_long maps/invadid/map[...].ber > (run with any of the invalid map options.
- Download the zipped folder;
- Run < make > to compile;
- Run < ./so_long maps/valid/map1_valid_big.ber > OR < ./so_long maps/valid_map2_valid_small.ber >