Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/babreton/42-so_long

My so_long project at 42 Perpignan
https://github.com/babreton/42-so_long

42 42-so-long 42cursus 42projects 42school 42solong so-long solong solong42

Last synced: about 2 months ago
JSON representation

My so_long project at 42 Perpignan

Awesome Lists containing this project

README

        


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 :
```bash
make
```

Then launch the program by using :
```bash
./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!