Top-down dungeon generation code

hello,
I’m restarting my project after a few months and I need a procedural map generation.
I couldn’t find any examples online apart from the example integrated in gdevelop “dungeon cave” where you can’t manage the edge animations.
in unity and other engines there are plenty of ready-made examples to manage map creation like in this case:

even paying, does anyone have a ready-made code?

Are you after single room generation, or a whole dungeon with interconnected rooms, possibly with passageways? I don’t have anything, but it may help with any responses you may get from others.

Have you checked out the Dungeon Generator extension?

a single dungeon with items created inside the dungeon.
yes i noticed this example but i dont know how to give depth and animation cuts to the surrounding walls

An efficient and fast method is to use bitwise checks. Here’s an a link to an article about “A Bitwise Method For Applying Tilemaps”.

The method you’d apply would be very similar but include the 4 diagonal neighbouring tiles. This would change the neighbouring tile values to:

 1  |  2  |  4
--- + --- + ---
 8  |     | 16
--- + --- + ---
 32  | 64 | 128
1 Like