Go to file
lfirmin 50c15b30e1 intra to gitea 2025-11-16 09:58:07 +01:00
assets intra to gitea 2025-11-16 09:58:07 +01:00
ft_printf_fd intra to gitea 2025-11-16 09:58:07 +01:00
gnl intra to gitea 2025-11-16 09:58:07 +01:00
include intra to gitea 2025-11-16 09:58:07 +01:00
libft intra to gitea 2025-11-16 09:58:07 +01:00
maps intra to gitea 2025-11-16 09:58:07 +01:00
minilibx-linux intra to gitea 2025-11-16 09:58:07 +01:00
srcs intra to gitea 2025-11-16 09:58:07 +01:00
.gitignore intra to gitea 2025-11-16 09:58:07 +01:00
Makefile intra to gitea 2025-11-16 09:58:07 +01:00
readme.md intra to gitea 2025-11-16 09:58:07 +01:00

readme.md

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 ⚙️

git clone [REPO_URL]
cd so_long
make

Usage 🎯

./so_long [MAP_PATH]

Example:

./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