mousliiim / so_long

This project is a simple 2D game designed to use textures, sprites with the MiniLibX and some basic gameplay elements 🎮

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project for 42 Paris - So_Long

In this project, we must implement our own 2D game, using the miniLibX library. The rules of the game are as followed:

Maps must be stored in files, and the extension must be ".ber".

Maps must be composed of only 9 possible characters :

0 for an empty space

1 for a wall

P for the player's starting position

C for a collectible item

E for an exit

n for a north-facing enemy

w for a west-facing enemy

s for a south-facing enemy

e for an east-facing enemy

The map must be closed/surrounded by walls. The player must collect all the collectible items, then go to the exit to win the game. The player can move using the W, A, S and D keys, or the arrow keys. The player can quit the game by pressing the ESC key, or by clicking the top-right cross. If the player touches an enemy, the game is over. The game must display the number of moves the player has made.

Documentation

Demo

ezgif-3-9554eee46a

About

This project is a simple 2D game designed to use textures, sprites with the MiniLibX and some basic gameplay elements 🎮


Languages

Language:C 84.3%Language:Roff 11.2%Language:Makefile 3.3%Language:Shell 0.9%Language:Perl 0.3%