Welcome to my so_long
project !
This project challenges us to create a simple 2D game using the MinilibX graphics library.
The so_long
project is an introduction to graphics programming and game development in the C language. Key features include:
-
Graphics with MinilibX:
- Utilize the MinilibX library for creating a graphical interface.
-
Map Parsing:
- Read and parse map files to define the game layout.
-
Player and Collectibles:
- Implement player movement and include collectible items.
-
Game Loop:
- Create a game loop for continuous player interaction.
/srcs/
: Contains the source files, including the mainso_long
program./includes/
: Header files, includingso_long.h
./xpm/
: Graphic assets and textures used in the game./ber/
: Sample map files for testing./bonus/
: better version. Player can die if touched by ennemies, animated sprites, move count
- Clone the repository to your local machine.
- Unzip the minilibx-linux.zip
- Navigate to the
/srcs/
directory and review the source files. - Compile the project using the provided Makefile (
make
). - Run the executable with a map file as an argument (
./so_long maps/sample_map.ber
).
- W, A, S, D: Move the player.
- ESC: Exit the game.
Special thanks to Ecole 42 for the inspiration and learning opportunity.
Enjoy playing! 🎮