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 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'
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
Key | Action |
---|---|
W , ⬆️ |
UP |
A , ⬅️ |
LEFT |
S , ⬇️ |
DOWN |
D , ➡️ |
RIGHT |