GitHub - mdbentaleb/So_long_42: 🎮 So_Long is a 42 Network project where you develop a 2D maze game using the MiniLibX library. The game focuses on player movement, collecting items, and reaching the exit. It strengthens your understanding of graphical rendering, event loops, and game logic implementation. đŸ•šī¸đŸ§Š

Image

So_Long is a project from the 42 Network where the goal is to create a 2D game using the MiniLibX library. The game features a player that can move through a maze and collect items, with the objective of reaching the exit. This project reinforces understanding of graphical programming, event handling, and memory management.

🚀 Features

  • 2D maze with a player character that can move using the keyboard.
  • Collectible items and a goal to reach an exit.
  • Interactive graphics rendered using MiniLibX.
  • Game mechanics like collision detection and player movement.

đŸ› ī¸ Getting Started

Prerequisites
To get started, ensure you have the following installed:

  • A C compiler like gcc or clang
  • make for building the project
  • A UNIX-like operating system (Linux/macOS/WSL)

1. Clone the Repository

 git clone https://github.com/mdbentaleb/Push_swap_42

2. Compile the Project

After cloning the repository, you can compile and run the game using the following commands:

  • To compile and run the game with the mandatory features:

    1. Compile the project:
    2. Run the game with a map:
  • To compile and run the game with bonus features (e.g., including enemies):

    1. Compile the project with bonus features:
    2. Run the game with a map:
      ./so_long_bonus maps/map_bonus.ber

This setup allows you to choose between the mandatory version and the bonus version of the game.

4. Clean Up

To remove the compiled files: