57 lines
1020 B
Markdown
57 lines
1020 B
Markdown
# so_long 🎮
|
|
|
|
A simple 2D game created with MinilibX. Player must collect all objects and reach the exit! 🎯
|
|
|
|
## Description 📝
|
|
|
|
so_long is a small 2D game where you navigate through a map, collect items, and reach the exit using MinilibX graphics library. A perfect first game project! ✨
|
|
|
|
## Features 🚀
|
|
|
|
- Character movement with WASD or arrow keys 🎹
|
|
- Item collection 💎
|
|
- Move counter 🔢
|
|
- Collision detection 💥
|
|
- Sprite display 🖼️
|
|
- Map validation ✅
|
|
|
|
## Prerequisites 📋
|
|
|
|
- gcc or clang 🛠️
|
|
- make 🔧
|
|
- MinilibX 🎨
|
|
- Compatible operating system (Linux/MacOS) 💻
|
|
|
|
## Installation ⚙️
|
|
|
|
```bash
|
|
git clone [REPO_URL]
|
|
cd so_long
|
|
make
|
|
```
|
|
|
|
## Usage 🎯
|
|
|
|
```bash
|
|
./so_long [MAP_PATH]
|
|
```
|
|
|
|
Example:
|
|
```bash
|
|
./so_long maps/map1.ber
|
|
```
|
|
|
|
## Map Format 🗺️
|
|
|
|
Maps must be .ber files and follow these rules:
|
|
- 1 for walls 🧱
|
|
- 0 for floor ⬜
|
|
- P for player 🧍
|
|
- E for exit 🚪
|
|
- C for collectibles 💎
|
|
|
|
## Controls 🎮
|
|
|
|
- WASD or Arrows: Movement 🔄
|
|
- ESC: Quit game ❌
|