# Chunk-based tilemap generating. (closed)

**URL:** <https://forum.makecode.com/t/chunk-based-tilemap-generating-closed/18694>\
**Category:** Arcade\
**Created:** [March 23, 2023, 5:14pm UTC](https://forum.makecode.com/t/chunk-based-tilemap-generating-closed/18694 "2023-03-23T17:14:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Salex](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/salex/32/15835_2.png) [@Salex](https://forum.makecode.com/u/Salex)\
**Post date:** [March 23, 2023, 5:14pm UTC](https://forum.makecode.com/t/chunk-based-tilemap-generating-closed/18694/1 "2023-03-23T17:14:07Z")

</div>

How could I make a procedural chunk-based generator for a top-down tilemap? Like, my idea is that I have a bunch of preset chunks and it’ll place them based on the openings/walls of the ones around it? If you understand, any idea? New to tilemap generation. I thought about taking the easy route of making all the chunks have the same free areas on the top/bottom and left/right; that way, no need to worry about entrances being blocked.

Edit: I have a solution for myself, never mind

---

<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:** [March 23, 2023, 5:42pm UTC](https://forum.makecode.com/t/chunk-based-tilemap-generating-closed/18694/2 "2023-03-23T17:42:20Z")

</div>

What was the solution I’m curious

---

<div class="post-metadata">

**Author:** ![Salex](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/salex/32/15835_2.png) [@Salex](https://forum.makecode.com/u/Salex)\
**Post date:** [March 23, 2023, 7:57pm UTC](https://forum.makecode.com/t/chunk-based-tilemap-generating-closed/18694/3 "2023-03-23T19:57:12Z")

</div>

Mine was to get a bunch of 12x12 colour squares from an image and get an algorithm to copy a random chunk tile-by-tile onto the square, then apply filters, stuff like that

Not very thought out on how to explain, but I know basically what I’d do
