https://github.com/msabr/so_long_1337
This project is a small 2D game with minilibx. You'll learn about textures, sprites and tiles.
https://github.com/msabr/so_long_1337
1337cursus 1337school 42cursus 42projects 42school minilib-mlx minilibx minilibx-42 mlx mlx-library mlx42 solong solong42
Last synced: 7 months ago
JSON representation
This project is a small 2D game with minilibx. You'll learn about textures, sprites and tiles.
- Host: GitHub
- URL: https://github.com/msabr/so_long_1337
- Owner: msabr
- Created: 2025-03-03T15:13:43.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2025-03-12T02:18:25.000Z (8 months ago)
- Last Synced: 2025-03-12T03:25:26.709Z (8 months ago)
- Topics: 1337cursus, 1337school, 42cursus, 42projects, 42school, minilib-mlx, minilibx, minilibx-42, mlx, mlx-library, mlx42, solong, solong42
- Language: C
- Homepage:
- Size: 3.53 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# **so_long - 42 Network**
## **Overview**
**so_long** is a small **2D game** built using **MiniLibX (mlx)**. This project introduces fundamental concepts of **game development**, such as **textures, sprites, tiles**, and **player movement**. The game is based on a **tile-based map system**, and the objective is to navigate through the map while interacting with various elements.
## **Project Scope**
In this project, you will:
- Use **MiniLibX** to create a game window and render graphics.
- Load and display **textures** for walls, collectibles, and the player.
- Work with **sprites** to create movement animations.
- Implement a **tile-based map system** for level design.
- Handle **keyboard inputs** for player movement.
- Detect **collisions** and manage game events (e.g., collecting items, reaching the exit).
## **Learning Outcomes**
- Understanding **2D rendering** and **image manipulation** in C.
- Working with **MiniLibX** for graphics programming.
- Managing **player movement** and **collision detection**.
- Handling **event-driven programming** with keyboard inputs.
## **Usage**
### How to Build and Run
1. Clone the repository:
```bash
git clone https://github.com/msabr/SO_LONG_1337
cd SO_LONG_1337
2. Build the mandatory part:
```bash
make
3. Run the game with a `.ber` map file:
```bash
./so_long maps/.ber
#### Additional commands
- `make clean`: remove object files.
- `make fclean`: remove the program and object files.
- `make re`: rebuild everything.