# Help With Procedural Generation

**URL:** <https://forum.makecode.com/t/help-with-procedural-generation/30293>\
**Category:** Help\
**Created:** [August 25, 2024, 1:17am UTC](https://forum.makecode.com/t/help-with-procedural-generation/30293 "2024-08-25T01:17:14Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![platformermaster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/platformermaster/32/16102_2.png) [@platformermaster](https://forum.makecode.com/u/platformermaster)\
**Post date:** [August 25, 2024, 1:17am UTC](https://forum.makecode.com/t/help-with-procedural-generation/30293/1 "2024-08-25T01:17:14Z")

</div>

Here is what I have so far [https://arcade.makecode.com/S67394-77324-87897-48748](https://arcade.makecode.com/S67394-77324-87897-48748) but I need help making a second phase where there are rooms and hallways that are all accessible. As you can see there are already rooms but I need them to be all connected through hallways. Thanks  
People I think could help me with this  
@richard  
@jwunderl  
Thanks!

---

<div class="post-metadata">

**Author:** ![pecan4pi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/pecan4pi/32/20940_2.png) [@pecan4pi](https://forum.makecode.com/u/pecan4pi)\
**Post date:** [August 25, 2024, 7:21pm UTC](https://forum.makecode.com/t/help-with-procedural-generation/30293/2 "2024-08-25T19:21:12Z")

</div>

I’m decent with top down open world procedural generation but not dungeons. @InvalidProject did make a procedurally generated dungeon crawler so maybe they could help. Also @UnsignedArduino made the seeding extension so he might give you some advice.

if you just need general procedural generation help you can ping me (I’ve made quite a few procedurally generated games, I just haven’t posted them on the forum

---

<div class="post-metadata">

**Author:** ![platformermaster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/platformermaster/32/16102_2.png) [@platformermaster](https://forum.makecode.com/u/platformermaster)\
**Post date:** [August 25, 2024, 10:12pm UTC](https://forum.makecode.com/t/help-with-procedural-generation/30293/3 "2024-08-25T22:12:06Z")

</div>

Well the problem I have now @pecan4pi is I make the dungeon rooms but I don’t know how to code good hallways. Whenever I do the hallways they don’t go to all the rooms and there just in random areas. (THIS IS NOT A ERROR IN MY CODE I JUST DON’T KNOW HOW TO DO IT). Here is the newest link if that helps at all. [https://arcade.makecode.com/S67394-77324-87897-48748](https://arcade.makecode.com/S67394-77324-87897-48748)

---

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [August 26, 2024, 12:30am UTC](https://forum.makecode.com/t/help-with-procedural-generation/30293/4 "2024-08-26T00:30:03Z")

</div>

hmm i’ve struggled with procedural dungeon layouts as well the best i could come up with was [Random Map Event Generation 🗺 (like Slay the Spire)](https://forum.makecode.com/t/random-map-event-generation-like-slay-the-spire/29739)  
the advantage of this is that all the data is storable and readable. I have 0 clue how this could translate into tilemaps though.  
richard did make a really good procedurally generated dungeon tho i think it’s exactly what you need, check it out here: [Dungeon](https://forum.makecode.com/t/dungeon/1906)

---

<div class="post-metadata">

**Author:** ![platformermaster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/platformermaster/32/16102_2.png) [@platformermaster](https://forum.makecode.com/u/platformermaster)\
**Post date:** [August 26, 2024, 2:57am UTC](https://forum.makecode.com/t/help-with-procedural-generation/30293/5 "2024-08-26T02:57:22Z")

</div>

Thanks for requesting @richard 's Dungeon generation I thought it look really cool, But I need something for bigger tile maps like 80x80 maps. I have an idea but it might take a while ill keep you (@Luke) and @pecan4pi updated.

---

<div class="post-metadata">

**Author:** ![platformermaster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/platformermaster/32/16102_2.png) [@platformermaster](https://forum.makecode.com/u/platformermaster)\
**Post date:** [August 28, 2024, 2:23am UTC](https://forum.makecode.com/t/help-with-procedural-generation/30293/6 "2024-08-28T02:23:32Z")

</div>

YOOOO @Luke @pecan4pi I MADE IT WORK check it out…[CLICK HERE](https://arcade.makecode.com/S67394-77324-87897-48748) Tell me what you think and what I could improve. Now Im working on enemies and loot drops

---

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [August 28, 2024, 4:40pm UTC](https://forum.makecode.com/t/help-with-procedural-generation/30293/7 "2024-08-28T16:40:19Z")

</div>

wow super cool! I would make the wall tiles more interesting and varied so it’s not just the same thing and also try adding multiple paths.

---

<div class="post-metadata">

**Author:** ![pecan4pi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/pecan4pi/32/20940_2.png) [@pecan4pi](https://forum.makecode.com/u/pecan4pi)\
**Post date:** [August 28, 2024, 4:45pm UTC](https://forum.makecode.com/t/help-with-procedural-generation/30293/8 "2024-08-28T16:45:40Z")

</div>

Its looking great! The next step is using the rng extension. It’s going to sound scarry but it’s not too bad. What your going to want to do is replace all the pick random blocks in your code to seeded random values. then ask for a seed or randomly generate one. Now your probably thinking “Why would I do this and learn how to use a new hard extension?” You should use it because it’s really fun to use. It feels soooooo good/cool when you get a set seed menu and input a number and after a few seconds your in the game with a new map and you think to yourself “Wow, _I_ made this! That’s so cool!” Also say you want to play the same dungeon with a friend, you both input the same seed and your good to play!

The two other things I can recommend are making the first cutscene skippable and add a loading screen for when its generating the map.

Your doing great and I’m looking forward to seeing where this goes. as always; ping me if you need anything and keep up the great work! 😃

---

<div class="post-metadata">

**Author:** ![platformermaster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/platformermaster/32/16102_2.png) [@platformermaster](https://forum.makecode.com/u/platformermaster)\
**Post date:** [August 29, 2024, 2:26am UTC](https://forum.makecode.com/t/help-with-procedural-generation/30293/9 "2024-08-29T02:26:12Z")

</div>

@pecan4pi Yes I need help already, And an opinion. First what is the link/url to the RNG extension. Next is it easy to use? I dont have to use the seed for all of the loot drops right? Oh and how should I do enemy spawning and AI? I want to use the Sprite sight extension.

Thanks,

Oh and forums kinda dead…

---

<div class="post-metadata">

**Author:** ![pecan4pi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/pecan4pi/32/20940_2.png) [@pecan4pi](https://forum.makecode.com/u/pecan4pi)\
**Post date:** [August 30, 2024, 4:42am UTC](https://forum.makecode.com/t/help-with-procedural-generation/30293/10 "2024-08-30T04:42:14Z")

</div>

> **[Home | Awesome Arcade](https://awesome-arcade.vercel.app/)**
>
> This is a list of awesome MakeCode Arcade extensions and tools that I find super useful (or just plain cool) in my projects.

you can find the rng extension and many other useful extensions.

It is easy to use once you figure it out. look at some examples and you’ll figure it out in no time.

You dont have to seed the loot drops if you dont want to (it would be cool though)

do you mean the neural network extension or just regular “ai?” If your talking about the neural networks then dont. They won’t fit the theme of the game and its going to be hard to implement into regular enemies.

> [@platformermaster](#):
>
> Oh and forums kinda dead…

?

---

<div class="post-metadata">

**Author:** ![platformermaster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/platformermaster/32/16102_2.png) [@platformermaster](https://forum.makecode.com/u/platformermaster)\
**Post date:** [August 30, 2024, 10:48pm UTC](https://forum.makecode.com/t/help-with-procedural-generation/30293/11 "2024-08-30T22:48:26Z")

</div>

Its blocked (-\_\_\_\_\_\_\_\_\_\_- ) so can you just send me the rng extension url that is used into the search bar in Microsoft arcade to import the extension. And I said that because most school has started so everyone is gonna be less active.
