🎮 The purpose of this project is to make a very small 2D game using textures, sprites, keyboard events and many others.
I believe that the goal of this project, was learn how to treat bugs, how to work with libraries, read documentation and the most important thing: how to use BFS algorithms And how to debbug Recursion in gdb/lldb.
For installing this project, refer to minilibx and It's dependencies. You'll also need:
- C compiler(
gcc/clang
). which you can set under the Makefile inside this project root, for that change theCC
variable inside it. gnu make
. For building the project.
Maps are found inside the Maps folder, maps should follow some rules shown below:
- 1's are walls
- 0's are grounds
- P is the player
- C's are collectables
- E's are exits
- The maps files should end with a .ber extension.
- It's required to exist a valid path to all colectables and at least one exit.
- The map must be surrounded by walls.
- The map must be retangular (all lines with the same length)
- There must be only one P
If the map do not follow the rules a error will be shown in the promt.
The goal of those rules was to make sure the user enter the right thing into the app, bny showing helpful information.
./so_long <path-to-map>.ber
👤 Lohan Guedes
- Github: @lguedes
- LinkedIn: @lohan-guedes
Feel free to fork this project and send a pull request to it! I would love to see possible improvements ❤️🩹. Give a ⭐️ if this project helped you!