Discover the world of computer graphics with so_long_1337, a 2D game project using MiniLibX. Experience engaging gameplay and unleash your creativity in graphics programming.
- "so_long" is a captivating 2D adventure where players traverse a maze, aiming to collect all items before reaching the exit. Along the way, they must skillfully navigate past obstacles like walls and enemies to emerge victorious.
- To use this program, you need a C compiler (e.g., GCC) and the make utility installed on your system.
-
Clone the repository:
git clone https://github.com/s-marsi/so_long_1337.git so_long cd so_long
-
Compile the program:
make # This will generate the so_long program. make clean # This will remove object files.
-
Usage :
- Execute in your bash terminal:
./so_long folder/file.ber
-
-
./so_long
: the name of the program.
-maps
: The folder that stores map files.
-map5.ber
: The file containing the map data. (you can make your own map)
- In the map file, you will find the following letters: 0, 1, C, E, P, N, B.
0 represents an empty space. 1 represents a wall. C represents a collectible. E represents the map exit. P represents the player's starting position. N represents the black bomb. B represents the red bomb. - The map file should have a .ber extension.
- For example :
./so_long maps/map5.ber
Use the W, A, S, and D keys to move the player character:
- Execute in your bash terminal: