Skip to content

Latest commit

 

History

History
62 lines (44 loc) · 2.31 KB

README.md

File metadata and controls

62 lines (44 loc) · 2.31 KB

BaBreton

language language

42-So_long

So-long is a 42 school project in which you must create a little 2d game using the MiniLibX, a graphical library.

Installation

You can use make in the root folder of the project to create the executable :

  make

Then launch the program by using :

  ./so_long

Usage

The program work by generating a map from a .ber file. Here the elements which composes the map's file.

  • 1 - Wall (The map must be surrounded by walls)
  • 0 - Ground
  • P - Player (Maximum one allowed)
  • E - Exit (Maximum one allowed)
  • C - Collectibles (Must collect all the collectibles before exiting)
  • T - Traps (Animated; walking on it results in death)
<- Here an example of a legit .ber file.

After create your own .ber map, or not, you can launch the program. You can select a map with 1-2-3 or use 4 to use your own map.

<- If you use your own map, press 4, then type the path of your map.

 


 

Now, you can start playing ! Use your keyboard arrows to move, collect all the objects, avoid the traps, and make your escape!