|
ForumsSega Master System / Mark III / Game GearSG-1000 / SC-3000 / SF-7000 / OMV |
Home - Forums - Games - Scans - Maps - Cheats - Credits Music - Videos - Development - Hacks - Translations - Homebrew |
Author | Message |
---|---|
|
Super Easy to Use PNG to ASM converter
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! |
|
|
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. | |