Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/caglakahriman/c-minilibx-2d-game

A 2D game, created using Minilibx library of C
https://github.com/caglakahriman/c-minilibx-2d-game

Last synced: 5 days ago
JSON representation

A 2D game, created using Minilibx library of C

Awesome Lists containing this project

README

        

# C-Minilibx-2D-Game
A 2D game, created using Minilibx library of C

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.

You can start the game by compiling the code using 'make', then './escape maps/map.ber'.
You can create your own map by following correct maps features (at least 1 collectible, 1 exit, 1 player. Map should be surrounded with walls.)
You can play the game with W,A,S,D keys.
Player can't exit without collecting all collectibles.
You can create your own textures and implement them in the 'img' directory. The file extension should be xpm.

On this project I,
- handle [minilibx](https://qst0.github.io/ft_libgfx/man_mlx.html#:~:text=MiniLibX%20is%20an%20easy%20way,image%20and%20basic%20events%20management.) library,
- handle potential memory [leaks](https://en.wikipedia.org/wiki/Memory_leak#:~:text=In%20computer%20science%2C%20a%20memory,longer%20needed%20is%20not%20released.),
- handle key [hooks](https://harm-smits.github.io/42docs/libs/minilibx/hooks.html),
- handle reading maps,
- handle rendering a 2D [scene](https://harm-smits.github.io/42docs/libs/minilibx/images.html),
- handle gameplay elements,
- handle character movement,
- handle move count of the player,
- handle collision check,