https://github.com/horrjiy/so_long
42 Core Curriculum --- Simple 2D Game in C. A maze in which the player has to collect coins.
https://github.com/horrjiy/so_long
42commoncore 42heilbronn c game-2d
Last synced: 21 days ago
JSON representation
42 Core Curriculum --- Simple 2D Game in C. A maze in which the player has to collect coins.
- Host: GitHub
- URL: https://github.com/horrjiy/so_long
- Owner: Horrjiy
- Created: 2024-12-02T15:37:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-30T20:44:04.000Z (about 1 year ago)
- Last Synced: 2025-04-30T21:26:05.239Z (about 1 year ago)
- Topics: 42commoncore, 42heilbronn, c, game-2d
- Language: C
- Homepage:
- Size: 355 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
-#---#---#---#---#---#---#---#---#---#---#-
Usage:
./so_long
Only use for MacOS, the MLX42 library has several issues with Linux and Windows.
-#---#---#---#---#---#---#---#---#---#---#-
Map making:
The map can be composed of only these 5 characters:
0 for an empty space,
1 for a wall,
C for a collectible,
E for a map exit,
P for the player’s starting position.
- The map must be rectangular.
- The map must be closed/surrounded by walls.
- The map must contain exactly 1 exit, 1 starting position, and at least 1 collectible to be valid.