SoLong is a 2D game developed as part of the 42 curriculum. The game focuses on basic game mechanics and graphical rendering, providing an introduction to interactive applications. It implements a simple player-controlled character navigating through a maze-like environment while avoiding obstacles and enemies. The project aims to enhance skills in C programming, graphical libraries, and game logic.
Screencast.from.04-01-2025.11.33.41.AM.webm
-
✅ Player Movement
- Move the player character across the screen using keyboard inputs.
-
✅ Map Design
- Customizable 2D maps with obstacles and paths, created using a simple map file format.
-
✅ Enemies
- Simple AI-controlled enemies that interact with the player.
-
✅ Game Logic
- Logic for player movement, collision detection, and game-over conditions.
-
✅ Animations
- Basic animations for the player character and enemies for a more engaging experience.
- 💻 Language: C
- 🎮 Graphics Library: MiniLibX
- 🧑💻 Additional Technologies: Keyboard Input Handling, Basic AI for Enemies, Game Loop
The goal of SoLong is to build an interactive 2D game using basic programming principles. The project allows students to practice working with graphical libraries, handling user input, and implementing game mechanics. The bonus features enhance the gameplay and user experience.
- Clone the repository:
git clone https://github.com/erikgonk/so_long.git && cd SoLong
- Execute it:
[ "$(uname)" = "Darwin" ] && cd Mac || cd Linux && make r