Skip to content
ael-ayoubPublic

About

This is a repository for the so_long project (42 School), developed in C using the MiniLibX graphics library.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

so_long

so_long

A simple 2D game project developed as part of the 42 curriculum. The goal is to move a character through a maze to collect items and reach an exit while avoiding enemies.

📌 Features

  • 2D grid-based movement
  • Player controls using keyboard inputs
  • Basic enemy AI
  • Collectible items
  • Victory and game-over conditions

📥 Installation

git clone https://github.com/ael-ayoub/so_long.git
cd so_long
git clone https://github.com/42Paris/minilibx-linux.git
make

🕹️ Usage

./so_long map.ber

Use WASD keys to move the player.

🗺️ Map Format

The game uses .ber files for level maps. Example:

111111
1P0C1E
111111
  • 1 = Wall
  • P = Player Start
  • 0 = Empty Space
  • C = Collectible
  • E = Exit

🛠️ Dependencies

  • MinilibX
  • GCC compiler
  • Make

📂 Project Structure

img/
include/
libft/
Makefile
maps/
so_bonus.c
so_long.c
src/
src_bonus/

🎉 Bonus Part

  • Additional animations
  • Improved enemy AI
  • More advanced interactions
  • Extra game modes

✅ To-Do

  • Improve enemy AI
  • Add more levels
  • Enhance visuals with sprites
  • Expand bonus features

📜 License

This project is licensed under the MIT License.

🙌 Acknowledgments

Thanks to the 42 community for guidance and resources.


Project developed as part of the 42 curriculum.

About

This is a repository for the so_long project (42 School), developed in C using the MiniLibX graphics library.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages