/so_long

Repository for all the code written for so_long, a project of 42 Common Core.

Primary LanguageCGNU General Public License v3.0GPL-3.0

So_Long

Description: So_Long is a simple 2D game written in C using the MinilibX graphics library. The game features a player-controlled character navigating through a maze, collecting items, and avoiding obstacles. The goal is to reach the exit while scoring points.

Features:

  • 2D graphics and basic game mechanics.
  • Player movement, item collection, and collision detection.
  • Maze generation and rendering.
  • Score tracking and game over conditions.

Dependencies:

  • MinilibX graphics library.

How to Play:

  1. Clone the repository: git clone https://github.com/Kelho0812/so_long.git
  2. Navigate to the project directory: cd so_long
  3. Compile the game: make
  4. Run the game: ./so_long maps/map.ber

Controls:

  • W/A/S/D keys to move the player.
  • Collect all items and reach the exit to win.
  • Avoid collisions with enemies and obstacles.

Additional Notes:

  • The game is part of the 42Network Curriculum. and serves as an introduction to basic game development concepts using C and the MinilibX library.
  • Feel free to explore and modify the code for educational purposes.

Contributing: Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

License: This project is licensed under the MIT License.

Acknowledgments: Thanks to the MinilibX library developers and contributors.

Have fun playing So_Long!