An awesome job, if I may say it. The idea of having a “safe break” for impossible rooms is clever. Something I need to add to my own code.
It could be good to add the option to delete the excess of terrain to save some memory and gain a few fps.Something like if “terrain object” not touching rooms nor hallways, delete them.
The place will look a bit emptier of course, yet you save some memory.
Checking some random numbers I made a dungeon that goes beyond the boundaries. You need to take in account the hallway’s size when making them. An adjust to the room creation limits or the hallway’s place so it doesn’t goes below 0 or over the terrain limit.
Maybe a condition in the creator like RandominRange(1+Hallways_size, (Terrain_size-Hallways_size)-1) so you get sure the rooms and hallways. I know it may not be as easy as it, but I hope it helps as an idea.
First of all, great job on your examples, those are very well done and very valuable to the community.
This extension is not finished yet. You can of course use and test the non-finished code which is hosted on Github. Once the extension is submitted, reviewed, and published it will be available directly from GDevelop.
BTW, one idea for the rooms is to create External Layouts for rooms and insert those on top of the placeholder room objects made by the generator.
Another idea for the walls is to use the Autotile extension that FlokiTV is working on. (This selects the appropriate animation based on what position other tiles are located)
Thanks for the feedback as soon as this extension is available I will make an example template to create a dungeon crawler.
I have tried other methods but I have always gotten stuck in creating the corners
This has actually given me an idea. I should add another object type called “WallObject” and put those where these terrain are. (Users can of course use the same sprite for walls and terrain, but some people will want to be able to have walls look different).
And… now I think I am going to do the same thing for doorway objects! Thanks for helping with these ideas, guys!
On my game, I am starting to add the adult part of the game, and re drawing all the graphics (since I liked the cute femboy incubus I drew). It will have a different main character. (Incubus with angel wings) and the cute incubus will be the shop keeper.
I need to redraw walls, enemies, and start to think about power ups, both passive and activable) as well as the prices for them. And the save and load code.
Hi sorry for the late response, maybe @tristanrhodes can you help me I’m working with the extension right now but in 8x8 game and is a mess I resized all the sprites from your example to 8x8 I just create the dungeon with the extension parameters and added the external layout for room but is creating a Gaudi game.(Joke for this mess)
Look what it does, the green one are the pathway Why i this happening?
It will surely need @tristanrhodes hand, for sure. I just check the extension, but I haven’t use it to test the limits.
My wild guess is that in 8x8 the pathfinder must have troubles to pinpoint the paths.
Of course, it is just a guess, since I am not sure how he handles the grids (originally it uses a 64x64 grid).
I hope he can answer you soon, otherwise I’ll download the extension and give it a look to check the limits.