Forums

Sega Master System / Mark III / Game Gear
SG-1000 / SC-3000 / SF-7000 / OMV
Home - Forums - Games - Scans - Maps - Cheats - Credits
Music - Videos - Development - Hacks - Translations - Homebrew

View topic - Super Easy to Use PNG to ASM converter

Reply to topic
Author Message
  • Joined: 21 Aug 2021
  • Posts: 41
Reply with quote
Super Easy to Use PNG to ASM converter
Post Posted: Sun Jun 05, 2022 1:22 pm
Hi!

We're writting a mini demo game for the SEGA Master System for a project of ours.

While working on it, we needed a way to convert our tileset and the tilemap to their ASM "DB" directive equivalents.

Besides, we needed a way to build the SMS palette and generte its DB equivalent as well.

We didn't have time to learn how to use a new tool, so, instead, we wrote a small HTML page containing some JavaScript to do that for us.
It ended up being very esy to use, so we decided to share it here.

It's plain JS - no JQuery or any framework.

You can use it by simply replacing the png files in the "img" directory and the JS will generate the required ASM lines for the palette, the tileset and the map.

One could easily add some php and file upload, to turn this into an online tool to build the ASM from the images - we culd do it, but our server is very weak and might not e able to handle the traffic.

You can download it here:

http://www.portaldastartup.com/assets/dl/tilemapconverter.zip

The zip conains a single HTML file that contains the javascript that does the conversion, plus a diretory "img" where you can place your tileset and your tilemap.

The dimmensions are hardcoded, but you can easily change them by editing the js.

Cheers!
  View user's profile Send private message
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14687
  • Location: London
Reply with quote
Post Posted: Sun Jun 05, 2022 5:34 pm
You might try bmp2tile and png2tile as existing alternatives. I’m sure there’s some differences between these, I only use the first one.
  View user's profile Send private message Visit poster's website
Reply to topic



Back to the top of this page

Back to SMS Power!