Skip to content

Matesant/So_long

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Imagem 1 Imagem 2

✅ So_long

The First Graphical Project of the 42 Curriculum

In this project, we are challenged to create a 2D game using the MinilibX library provided by 42. MinilibX is a lightweight library designed to simplify the creation of basic graphical interfaces and event handling. This project is a great opportunity to learn about graphical programming and game logic.

How to run

To play, first compile the project with make:

make

In case you wanna play the bonus version:

make bonus

So, run ./so_long followed by the map:

./so_long map_eazy.ber	

For bonus:

./so_long_bonus map_eazy.ber

Maps

You can parse any kind of map, as long as it respects the below rules:

The map must be a .ber file.

And can only contain these characters:

CHAR OBJECT
1 Wall
C Coin
E Exit
P Player
0 Floor

For bonus there's an extra character - which makes you lose once touch it.

CHAR OBJECT
K Venom bottle

The map must be rectangular and surrounded by walls '1'.

The map must contain at least one exit, one collectible, and one starting position.

in the bonus you can have static enemies

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published