Skip to content

🎅 🎁 ⛄ 🌲 A small 2D game with minilibx

Notifications You must be signed in to change notification settings

rbiodies/so_long

Repository files navigation

So_long

Mandatory part

The aim of the mandatory part is to create a 2D game where any hero collects any valuables before leaving the place. It is built to make our work with textures, sprites and some gameplay elements.

Bonus list

• Enemy patrols that cause the player to lose in case of contact.

• There’s some sprite animation.

• Movement count is directly displayed on the screen instead of shell output.

Example of a .ber map

1111111111111111111111111
100000000000000010A100C01
1110000P00000C11100001111
1C0001100000000C0000C0111
111000000000000C111100111
110000010001101000C000011
1110000000000000000000111
111A000000C111100CA001E11
1111110000011110000001011
1C0000000000000C000000C11
1111111111111111111111111
  • 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,
  • A for an enemy patrol (for the bonus part).

Compilation

make bonus

Usage

./so_long maps/map4.ber

Screen Shot 2021-11-27 at 6 15 53 PM