This project is a very small 2D game with minilibx. Its purpose is to make you work with textures, sprites, and some other very basic gameplay elements.
It’s time for you to create a basic computer graphics project. So long will help you improve your skills in the following areas: window management, event handling, colors, textures, and so forth. You are going to use the school graphical library: the MiniLibX! This library was developed internally and includes basic necessary tools to open a window, create images and deal with keyboard and mouse events.
The capybara (Hydrochaeris hydrochaeris), also called capybara, is a small herbivorous mammal belonging to the order of rodents and the family of cavidae. It measures more than a meter long and weighs more than 50 kg. Males weigh between 10 and 15 kg less than females.
MiniLibX for Linux requires xorg, x11 and zlib, therefore you will need to install the following dependencies: xorg, libxext-dev and zlib1g-dev. Installing these dependencies on Ubuntu can be done as follows:
sudo apt-get update && sudo apt-get install xorg libxext-dev zlib1g-dev libbsd-dev
- Clone the project.
git clone [email protected]:ricardoreves/42-so-long.git
- Navigate to the project directory.
cd 42-so-long
- Compile the game. (You can ignore the Minilibx compilation warning)
make
- Start the game with a map.
./so_long maps/42.ber
- Move the player and collect objects, then go to the exit.
Key | Action |
---|---|
W | Move Up |
A | Move Left |
S | Move Down |
D | Move Right |
R | Reset Game |
ESC | Quit Game |
- github.com - Minilibx documentation
- github.com - Sample Minilibx project
- github.com - Introduction to Minilibx
- github.com - Implementation of images with Minilibx
- github.io - MiniLibX manipulating images
- itch.io - Platform that host game assets.
- XPMConverter - Online tool to convert images PNG to XPM
- SpriteCutter - Online tool to cut sprite images
- ImageMagick - Command-line tool to convert, edit, or compose digital images
Distributed under the MIT License. See LICENSE for more information.