So-Long

So Long

So Long is a simple 2D game where the player must collect all collectibles and find an exit to complete the level. The game is developed in C using MLX42, and adaptation of the MiniLibX graphical library, with a focus on handling textures, sprites, and basic gameplay mechanics.


so_long


How to Run

  1. Clone this repository:
    git clone https://github.com/dracudev/So-Long
    
  2. Navigate into the cloned directory and run make. This will compile all the source files and create the game.

    cd So-Long
    make
    
  3. Run the game with a .ber map file:
    ./so_long /map/map1.ber
    
  4. You can use the provided maps or create your own custom maps following the map guidelines.

  5. Additional Makefile Commands:


Project Summary

This project is designed to enhance your skills in C programming and graphical management using MLX42. You will work with event handling, window management, and the display of 2D textures to create a small game. The game involves navigating a character through a maze, collecting items, and reaching an exit.


Features


Gameplay

The goal of the game is to collect every collectible on the map and reach the exit with the least amount of moves possible. The player cannot move through walls and must follow the correct path to complete the level.

Controls:


Map Requirements

The map file passed as an argument to the game must adhere to the following rules:


Credits

Theme  Moonwalk