I Made A 2D Dungeon Generation Algorithm In C++
Hello everyone and welcome to this new video! Today I'm going to show you an algorithm I came up with a few days ago while trying to generate a dungeon randomly without loading.
As I mentioned in the video, if the algorithm I invented already exists, I'm sorry, but I didn't copy it on purpose; it wasn't intentional.
In this video, I'll show you more of the theory behind the algorithm than the code. Everything was done with C++, JSON, and the Raylib graphics library.
JSON library for C++: https://github.com/nlohmann/json
Discord: https://discord.com/invite/kJyN47dVgU
Chapters
Intro: 0:00
Explanation of Array and Map: 3:48
Explanation of the Algorithm: 8:28
Tests and Problems: 17:43
Where to Save Room Data: 24:09
Transfer Data from JSON to C++: 37:16
Outro: 45:39
#cpp #dungeon #gamedev #json
Thanks for watching, and see you in the next video!