Rangi42 / tilemap-studio

A tilemap editor for Game Boy, Color, Advance, DS, and SNES projects. Written in C++ with FLTK.
https://hax.iimarckus.org/topic/7691/
Other
381 stars 30 forks source link

wonderswan map format #75

Open joffb opened 1 year ago

joffb commented 1 year ago

loading and saving the wonderswan/wonderswan color map format

Rangi42 commented 1 year ago

Please explain exactly what format you want supported, ideally with example files and how they'd be rendered.

Edit: Oops, I thought this was an issue, not a PR. :P But some example files would still be nice for testing.

joffb commented 1 year ago

Hello! The commit will load and save raw maps in a format the wonderswan/color can read Used the spec from here, the tile number is a 9-bit value and the wonderswan color adds another bank which takes it to 10-bit http://daifukkat.su/docs/wsman/#disp_screens Both can use up to 16 palettes and support X/Y flipping

Not 100% sure what to upload but this zip has two 32x32 maps (fg and bg) and three tilesets to be loaded tiles.png at 0x000 (first bank) sprites.png at 0x100 tiles2.png at 0x200 (second bank) Has a rom (test.wsc) which loads the tilesets and maps and does some separate scrolling on each layer (scrolling works fine in mednafen and stoicgoose but looks a bit mad in oswan so I think I need to work on my interrupt handler) and puts a sprite on screen Also has the asm to build with nasm and a build .bat to convert the tiles and palettes with superfamiconv!

tilesmap_studio_ws_test.zip