/42_so_long

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.

Primary LanguageC

so_long

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.

Rules of the map

You must run the program with maps that have the .ber extension, in which the following parameters must be met:

◦ All map must be surrounded by walls : '1'

◦ Contain only 1 player: 'P'

◦ Have 1 or more exits: 'E'

◦ Contain, at least, 1 collectible: 'C'

How To Play The Game

To compile the game without enemies:

$ make

To compile the game with enemies:

$ make bonus

After compiling, execute the program, followed by the map:

$ ./so_long <map_name>.ber
$ ./so_long_bonus <map_name>.ber

After playing the game, if you want to clean the object files, execute:

$ make fclean

Controls 🎮

Key Action
W, ⬆️ UP
A, ⬅️ LEFT
S, ⬇️ DOWN
D, ➡️ RIGHT

Gameplay

Mandatory: simplescreenrecorder-2023-04-17_15 04 52 Bonus: simplescreenrecorder-2023-04-17_15 06 18

Grade:

Screenshot from 2022-11-21 15-30-59