- 42 Core Curriculum - Level 2
- Level 2 in the Holy Graph
- Passed with 125% (including all 3 bonuses) on 14th Aug 2022.
- 1st bonus : make the player lose when they touch an enemy patrol,
- 2nd bonus : some sort of sprite animation : 1 collectible, the player and the enemy,
- 3rd bonus : counter of movements displayed on the window instead of the terminal.
so_long_bonus_game.mov
Clone the repository in your terminal and create a folder named push_swap (or the name you prefer):
git clone https://github.com/mochan42/push_swap.git so_long
Enter into the directory push_swap
(or type in the name of the folder you created):
cd so_long
Run the Makefile:
make
for mandatory part
make bonus
for mandatory bonus part
The arguments that the so_long program (mandatory or bonus part) is the path to the map to load the game.
Maps are stored in the folder maps
.
To run the game :
./so_long ./maps/map_1.ber