Skip to content

umarsajidm/so_long

Repository files navigation

So Long

So Long is a small 2D game project created using the MiniLibX library. The objective is to collect all items on a map and escape via the shortest route.

🎮 Gameplay

  • The player controls a character on a grid-based map.
  • The goal is to collect all "collectibles" (C) and reach the "exit" (E).
  • The player must avoid walls (1).
  • Movement is controlled via keyboard (WASD or Arrow Keys).

🖼️ Graphics

This project uses MiniLibX for rendering graphics and handling window events.

🛠️ Compilation & Run

  1. Compile the game:

    make
  2. Run the game with a map file:

    ./so_long maps/map.ber

🗺️ Map Format

The map must be a .ber file containing:

  • 1 : Wall
  • 0 : Empty space
  • P : Player start position
  • C : Collectible
  • E : Exit

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors