Project RBH Devlog 0004 - Maze Work (Patreon)
Content
This past week was something of an anomaly for a few reasons. Wednesday was the release of Warframe’s Duviri Paradox update, and I had accepted that I would lose the whole day to that well in advance, but something came up on Thursday that ate into my development time as well. I don’t want to get into detail with that yet because I’m not sure how it’s going to pan out, but if things go well it will be a massive help to, well, everything.
The days that I did get the chance to work, I spent working on Procedural Generation. Nothing fancy yet, just a simple grid and a randomized path that determines a starting and ending room without branching.
This is a slightly outdated showcase of what the script does; I’ve fixed the issue that caused the misalignment around the edges of each room. I can even drop the player in that room and they will automatically start in the center of the starting room. It was a weird bit of math but not necessarily complicated once I thought it all through.
This is probably the most basic implementation of Procedural Generation possible, done by using a String substitution. Every tile in the room is turned into a text character and then those text characters are turned back into objects. You can probably already see the flaws in this system. Each individual object in the game needs a dedicated text character. That’s seven characters for the enemies alone! And since I do want to add more enemies as we go along, that’s more text characters gone!
It can also be a pain to adjust any of the premade rooms since I need to then convert them into strings again and put the updated string into the code.
Luckily, on Friday, I found a better way, one that directly saves each object in the room with no conversion necessary, and will have the more complex floor layouts that I’m looking for. That’s the goal for this week: implementing that.
Even though I probably won’t be using any of the code that I worked on this past week, it was a good experience and I learned a lot from it.
I know that it’s a short devlog this week, but there isn’t much to show off until I can get the Procedural Generation working. That’s going to be the single most complicated system for this build, possibly for the entire project, so I won’t be able to do much until it’s done.
Two weeks to go.
Until next Devlog!
-DeusVerve
Special thanks to my Tier 3 Patron Haelerin!