https://github.com/magnitopic/so_long
Small 2D game
https://github.com/magnitopic/so_long
2d-game 42cursus clang game gamedev linux macos mlx42 so-long so-long42
Last synced: about 2 months ago
JSON representation
Small 2D game
- Host: GitHub
- URL: https://github.com/magnitopic/so_long
- Owner: magnitopic
- Created: 2023-04-11T12:53:15.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-06T11:30:21.000Z (almost 3 years ago)
- Last Synced: 2025-03-12T21:23:33.525Z (over 1 year ago)
- Topics: 2d-game, 42cursus, clang, game, gamedev, linux, macos, mlx42, so-long, so-long42
- Language: C
- Homepage:
- Size: 347 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# So Long 🐬
## And thanks for all the fish!
This project is a very small 2D game. Its purpose is to make you work with textures, sprites, and some other very basic gameplay elements.
> Video showing the game: [https://youtu.be/GG_RffnJ-9A](https://youtu.be/GG_RffnJ-9A)

# Sprites and artwork
All the sprites used for this project were made by the wonderful **`@Riesco_144`** ✨
Check him out on Twitter: [https://twitter.com/Riesco_144](https://twitter.com/Riesco_144)
# Program
## Initial installation
```
git clone https://github.com/magnitopic/so_long.git
cd so_long
git submodule init
git submodule update
```
## Compilation
> Make sure you have `MiniLibX` installed
```
make
```
## Usage
> **Note:** Only files with `.ber` extension can be used
```
./so_long [MAP_FILE.ber]
```
# How to play
The objective of the game is to collect all the coins spread out across the map and then exit through the door in the smallest amount of moves.
### Actions
| Keyboard | Action |
| -------- | ------------- |
| `W`, `↑` | Move up |
| `A`, `←` | Move left |
| `S`, `↓` | Move down |
| `D`, `→` | Move right |
| `Esc` | Exit the game |