This project is a tiny 2D game. Its purpose is to practice with textures, sprites, and some other very basic gameplay elements.
The proyect uses Minilibx, a graphical library created by 42 Paris for 42 students. If you need more documentation about this library you can click here.
Just 4 simple steps:
- Copy the repositoire:
git clone https://github.com/telufulu/so_long telufulu_so_long
- Go to the directory:
cd telufulu_so_long
- Compile the program:
make
- You have a lot of diferent maps in assets/maps/, but you can start trying this command:
./so_long assets/maps/example.ber
To "unistall" it, just execute the command make fclean
The player’s goal is to collect every collectible present on the map, then escape chosing the shortest possible route.
You can use W, A, S, D keys to move, or the arrow keys.
Once you collect all the coins, you can reach the exit and finish the game. In this case, the exit is the purple tower and the collectives are coin bags.
If you want to exit the game early, just press ESC key.
You can draw you own map, but it must obey some rules:
- 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.
- It must contain 1 exit, at least 1 collectible, and 1 starting position to be valid.
- It must be rectangular.
- It must be closed/surrounded by walls.
- It must end with the extension .ber
Here you can see and example of a map
If you need something, you can reach me by Slack or email me