# Pxt-TilemapGen: an extension for messing with tilemap data!

**URL:** https://forum.makecode.com/t/pxt-tilemapgen-an-extension-for-messing-with-tilemap-data/33456
**Category:** Show & Tell
**Tags:** extension, graphics-and-math
**Created:** [January 28, 2025, 6:06pm UTC](https://forum.makecode.com/t/pxt-tilemapgen-an-extension-for-messing-with-tilemap-data/33456 "2025-01-28T18:06:28Z")
**Posts on this page:** 1
**Showing post:** 14

<div class="post-metadata">

### Author: ![BotWarrior](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/botwarrior/32/25328_2.png) [@BotWarrior](https://forum.makecode.com/u/BotWarrior)
#### Post date: [July 23, 2025, 12:53pm UTC](https://forum.makecode.com/t/pxt-tilemapgen-an-extension-for-messing-with-tilemap-data/33456/14 "2025-07-23T12:53:26Z")

</div>

WAIT A SECOND!!! Could you maybe generate a tile map from this? If you get the stringified JSON and save it with settings then regenerate it with Pxt-TilemapGen? Please tell me if I completely misunderstood something (I probably have)

> [@Is it possible to generate a TileMap in an extension?](https://forum.makecode.com/t/is-it-possible-to-generate-a-tilemap-in-an-extension/19187):
>
> I made a block that converts a TileMap to stringified JSON (For saving TileMaps to the device with the Settings extension), but now that I need to write a block that converts the stringified JSON back to a Tilemap I need to generate a new TileMap, the closest built-in function I found was the tiles.createTilemap function which takes in the arguments data: Buffer, layer: Image, tiles: Image[], scale: TileScale but I don’t know how to use data, layer, and scale. They’re used to generate a TileMap …

---

_[View the full topic](https://forum.makecode.com/t/pxt-tilemapgen-an-extension-for-messing-with-tilemap-data/33456)._
