Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/babreton/42-so_long
- Owner: BaBreton
- Created: 2023-03-24T12:36:42.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-07T12:52:00.000Z (over 1 year ago)
- Last Synced: 2023-09-07T12:55:57.710Z (over 1 year ago)
- Topics: 42, 42-so-long, 42cursus, 42projects, 42school, 42solong, so-long, solong, solong42
- Language: C
- Homepage:
- Size: 293 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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!