Go to file
2023-03-24 16:06:34 +01:00
bonus c'est tout bon 2023-01-19 17:38:47 +01:00
libftx c'est tout bon 2023-01-19 17:38:47 +01:00
mandatory fix 2023-01-27 13:58:11 +01:00
maps kekw 2023-01-19 13:41:58 +01:00
minilibx-linux kekw 2022-12-22 17:56:11 +01:00
textures fix + clean 2023-01-16 19:02:09 +01:00
Makefile norm 2023-01-20 14:41:52 +01:00
README.md Add 'README.md' 2023-03-24 15:03:08 +00:00
subject.pdf add: subject 2023-03-24 16:06:34 +01:00

Solong

This is my implementation of the Solong project for the 42 school.

Description

Solong is a simple 2D game where the player has to collect all the items in a maze and reach the exit. The game is written in C using the minilibx library for the graphics.

The project is composed of three parts:

  • The parsing of the map file in a format specified by the subject.
  • The rendering of the game using the graphics library.
  • The game loop and the handling of user input.

Installation

To install this project clone this repo

git clone https://git.chauvet.pro/starnakin/solong

Mandatory

To compile the game, simply run make in the root directory of the project. This will generate an executable called solong.

make

Bonus

To compile the game, simply run make bonus in the root directory of the project. This will generate an executable called solong.

make bonus

Launch

To run the game, you need to provide a valid map file as an argument. For example:

./solong maps/map.ber

The game requires the minilibx library to be installed on your system. If you're using macOS, the library should be already installed. If you're using Linux, you may need to install it manually.

Controls

The player can be moved using the arrow keys or the WASD keys. Pressing the ESC key or closing the window will exit the game. Screenshots

Here are some screenshots of the game:

Resources

Minilibx Subject

Author

This project was created by Camille Chauvet. If you have any questions or suggestions, feel free to contact me.