ShoeBox

Extract Tiles

Extracts a tile map and tile bank out of a screenshot of a game. The result can be saved as a Tiled *.tmx map file and a tile-bank *.png image. Tiled is a open source map editor.

When you roll-over the tiles it will show in a debug mode equal tiles accross the screen so you can better inspect where how and the tiles are placed.

Video

Settings

The templates contain a "NES" and "16 BIT" setup.

• scanNthPixel
This number will only scan every n-th pixel or a single tile when comparing against all other tiles. If the precission is off decrease this number. If it takes to long to parse a screenshot increase this number. A good default value is 2.
• scanNthTile
Just like skipping pixels you can also skip tiles initially when the code tries to find the grid of the tiles. The higher this value the faster but also the less accurate the result might be in the end.
• tileBankMaxWidth
When you start Tiled it has a initial width of the tile-bank pallette. I added this variable to limit the width of the exporting tile-bank for this reason, so it automatically extends the height if needed but keeps this maximim width in mind.
• tileHeight
The searching Tile-width. E.g on a SNES game this might be 16x16, on a NES game propably 8x8.
• tileWidth
The searching Tile-height.

Examples

The iconic Bionic Commando first level on the NES.

A level grab from Mario Bros for the NES

A level snippet from Megaman 6 on the NES