Skip to content

19Jillian89/So_long

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

23 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

so_long ๐ŸŽฎ

Language Score Status Bonus 42

A simple 2D game built with MiniLibX as part of the 42 curriculum.
The goal of the project is to practice graphics programming, map parsing, and event handling.


๐Ÿ“ธ Demo

Hereโ€™s a preview of the game in action:

so_long demo


๐Ÿ“ Mandatory Part

  • The number of movements must be displayed in the shell.

  • The map must be rectangular. Here is a simple valid map:

1111111111111
10010000000C1
1000011111001
1P0011E000001
1111111111111
  • The map must be enclosed/surrounded by walls. If it is not, the program must return an error.

  • Pressing ESC or clicking the close button should quit the program.

  • The map can be composed of only these 5 characters:

0 โ†’ Empty space

1 โ†’ Wall

C โ†’ Collectible (at least one required)

E โ†’ Exit (at least one required)

P โ†’ Player starting position (only one)


๐ŸŽฎ Controls:

Key Action
W / โ†‘ Move up
A / โ† Move left
S / โ†“ Move down
D / โ†’ Move right
ESC Quit the game
  • The W, A, S, and D keys must be used to move the main character.
  • The player should be able to move in these four directions: up, down, left, and right.
  • You are required to use MiniLibX for this project.

โ–ถ๏ธ How to compile

  • The program should be compiled and executed using:
./so_long map.ber
./so_long_bonus map.ber

๐Ÿ“„ License

This project is for educational purposes only and is part of the 42 Common Core curriculum. 42 Common Core curriculum,


๐Ÿ”— If you found this project helpful or interesting, consider supporting it by starring โญ๏ธ or forking.

About

A simple 2D game built with MiniLibX

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published