Skip to content

ayeshamk23/so_long

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฎ so_long

A simple 2D game built in C using MiniLibX โ€” collect, escape, and survive the maze.

๐Ÿ“Œ Description

so_long is a 42 School project that involves building a tile-based 2D game in C. The player moves around a map, collects all collectibles, and reaches the exit. The game is rendered using the MiniLibX graphics library, and the map is parsed from a .ber file.

The project teaches core concepts in graphics rendering, keyboard event handling, custom map parsing, and basic game loop logic.

๐ŸŽจ Features

  • Graphical rendering with MiniLibX
  • Real-time keyboard movement
  • Map reading and validation from .ber files
  • Collectibles and exit goal
  • Wall collision and path restriction
  • Bonus: enemies, animations, and move counter

๐Ÿ•น๏ธ Controls

  • W / โ†‘ โ€“ Move up
  • S / โ†“ โ€“ Move down
  • A / โ† โ€“ Move left
  • D / โ†’ โ€“ Move right
  • ESC โ€“ Quit the game

๐Ÿš€ Run the Game

make
./so_long maps/level1.ber

๐Ÿ“˜ Concepts Learned

  • 2D graphics rendering with MiniLibX
  • Event-driven programming and game loops
  • Parsing and validating grid-based maps
  • Collision detection
  • Modular game architecture in C
  • Handling textures and sprite animation
  • Manual memory management

About

solong is a 2D tile based game built in C with MiniLibX. The player collects items and reaches the exit while navigating a map parsed from a .ber file.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors