Simple 2D game: catch all coins, and exit! Made as an introduction to graphics programming.
1- Installing mlx dependencies
sudo apt-get install make xorg libxext-dev zlib1g-dev libbsd-dev
2- Clone this repository
git clone https://github.com/Kuninoto/42_so_long
3- Run make
make
4- make clean so that you don't keep those object files that you won't need anymore
make clean
5- Run so_long with a map of your choice!
./so_long [path/to/map].ber
'0' - Free space;
'1' - Wall;
'C' - Collectible;
'E' - Exit;
'P' - Player's starting position;
To be valid a map must respect the following:
- Be in `.ber` format;
- Be closed by walls;
- Be retangular;
- Contain only one P;
- Contain only one E;
- Contain at least one C;
- All elements must be accessible (not closed by walls);
- Be composed only by valid characters;
(Examples of valid maps on maps folder);
make or make all - compiles so_long
make bonus - same as all (added for assignment purposes)
make clean - wipes all object files
make fclean - deletes so_long and all object files
make re - fclean + all
MiniLibX docs
itch.io
OpenGameArt
At 42School, almost every project must be written in accordance to the "Norm", the schools' coding standard. As a result, the implementation of certain parts may appear strange and for sure had room for improvement.
Made by Nuno Carvalho (Kuninoto) | nnuno-ca@student.42porto.com
