Development repo for 42cursus' so_long project
For further information about 42cursus and its projects, please refer to 42cursus repo.
Small top-down, 2D game with textures, sprites, and basic gameplay.
For detailed information, refer to the subject of this project
First, run the command make
on mlx directory (don't bother about the warning signs, your computer will resist).
Then, you need to run the command make
on the root directory.
This will compile the executable file so_long
.
Last, run ./so_long sample_maps/map1.ber
or any map of your choice.
You can also create more random maps by running the map_generator
file found in the map generator directory (instructions are in Spanish, you may need to use some basic Google translation skills).
To play this game you can use any map of your choice as long as follows the following rules:
- The extension needs to be
.ber
- It must be rectangular, surrounded by walls
1
- Must have only one exit, one player and at least one collectible
- Characters allowed:
Character | Object |
---|---|
1 | wall |
0 | Empty |
C | collectible |
E | exit |
P | Player starting position |
V | Enemy starting position |
You can use AWSD
to move UP
, DOWN
, LEFT
, RIGHT
respectively.
For restarting the game press ESC
or click on the red cross on the upper-left corner.
To win the game it's necessary to pick up all the collectibles and pass through the exit.