Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/trobert42/so_long

A graphical introduction project by coding a 2d game
https://github.com/trobert42/so_long

2d game-development graphics hooks minilibx

Last synced: 9 days ago
JSON representation

A graphical introduction project by coding a 2d game

Awesome Lists containing this project

README

        

# 2D Game - MiniLibX

A simple top-down game in 2D where you have to get all the collectables to win. This is the first game project, it is to aim to discover graphical environment with the school graphical library MiniLibX.

| Project Name | so_long |
| :----------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------: |
| Description | A graphical introduction project using an educative library |
| Technologies | C |
| External libraries | open(), close(), read(), write(), malloc(), free(), perror(), strerror(), exit(), All functions from math.h, All functions of the MiniLibX |

## Installation

```bash
gcl https://github.com/trobert42/so_long.git
cd so_long
make bonus
./so_long_bonus maps/map.ber
```

If you use WSL and have some trouble with "can't find a suitable x11 include directory", i suggest to follow those steps here: https://harm-smits.github.io/42docs/libs/minilibx/getting_started.html#getting-a-screen-on-windows-10-wsl2

## Commands
`A` : left

`D` : right

`W` : up

`S` : down

## 💬
I thoroughly enjoyed handling movement control through the event system and selecting textures and colors.

My firsts sprites were some random pokemon pictures, but i don't have any clean video clip of it :(

## Screenshots

Yeah, as you thought, there's no sense in a wood trunk eating pizzas..

![](https://github.com/trobert42/so_long/blob/main/so_long_bonus_clip.gif)