Devlog #2 | Random Seeded Dungeon
The concept behind this is to allow the player to choose a seed from the main menu and play the game with that seed, or let the game generate a random seed.
The game will pass some data to the function, which will fully customize and generate the dungeon based on that data.
Starting with basic parameters like width and height, as not every dungeon has the same size.

And the content of the dungeon:

Once the data is sent, the function will begin generating the dungeon.
Here’s the procedural method it follows:
- Generate a matrix of the specified size and fill it with floor tiles.
- Fill the map’s border with walls.
- Create a labyrinth-style layout using walls (wall positions are determined by the seed).
- Place a door on a wall.
- Check if the door has walls on top and bottom to place it vertically, or walls on the left and right to place it horizontally.
- Place the key on the floor.
- Place the player on the floor (ensure the player can move to the key and door via the floor).
- Place enemy spawners on the floor.
The result looks something like this:
[ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 ]
[ 1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1 ]
[ 1,1,0,0,0,0,1,5,0,0,1,0,1,1,1,0,1,1,2,1 ]
[ 1,0,1,0,0,0,0,4,0,0,0,0,0,0,4,1,0,0,0,1 ]
[ 1,0,0,0,3,1,1,1,0,0,1,0,1,1,0,1,0,1,0,1 ]
[ 1,0,0,0,0,1,0,0,0,1,0,0,1,0,0,1,4,1,0,1 ]
[ 1,0,0,1,0,0,1,0,0,0,0,1,0,0,0,1,0,1,0,1 ]
[ 1,0,1,1,4,0,0,0,0,0,1,0,1,1,0,0,0,0,1,1 ]
[ 1,1,1,1,1,0,0,0,1,0,0,0,1,0,0,0,0,1,0,1 ]
[ 1,0,1,0,1,0,1,0,0,0,1,0,0,0,0,0,0,1,0,1 ]
[ 1,1,0,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,1,1 ]
[ 1,1,0,0,1,0,1,0,1,0,0,0,0,0,1,0,0,0,0,1 ]
[ 1,0,0,4,0,1,1,1,0,4,0,0,0,0,1,0,0,0,0,1 ]
[ 1,0,1,0,0,0,1,0,1,0,1,1,0,0,0,0,0,0,1,1 ]
[ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 ]
Note: The wall placement is not perfect yet—currently, walls are placed randomly (using the seed) rather than following a pattern that reflects how a real wall would work.
Get Shadows and Sorcery
Shadows and Sorcery
Explora un reino divino en constante cambio en este RPG 3D donde cada batalla pone a prueba tu alma
| Status | In development |
| Author | iMayiVT |
| Genre | Adventure, Action, Role Playing |
| Tags | 3D, Action RPG, Boss battle, Procedural Generation, Roguelike, Singleplayer |
| Accessibility | Subtitles, Interactive tutorial |
More posts
- Devlog #7 – Shadows and Sorcery: Production ReleaseMar 11, 2025
- Devlog #6 | Dialogues Overhaul and Demo ReleaseJan 28, 2025
- Devlog #5 | Magic and AI UpdatesJan 21, 2025
- Devlog #4 | Lights and MenusJan 21, 2025
- Devlog #3 | Reworking the Dungeon SystemJan 21, 2025
- Devlog #1 | Discovering What I'm Able to Do with GMS2Jan 21, 2025
Leave a comment
Log in with itch.io to leave a comment.