Skip to content

Conversation

@joffb
Copy link

@joffb joffb commented Oct 12, 2022

loading and saving the wonderswan/wonderswan color map format

loading and saving the wonderswan/wonderswan color map
@Rangi42
Copy link
Owner

Rangi42 commented Oct 12, 2022

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
Copy link
Author

joffb commented Oct 12, 2022

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

@asiekierka
Copy link

Any news on this PR? Just curious.

@Rangi42
Copy link
Owner

Rangi42 commented Dec 21, 2024

Well, it's as on-hold as everything else about the project (2025 might be a good time for me to get back to it); but also not mergable because it doesn't update res/help.html.

@asiekierka
Copy link

feature-wonderswan.patch.zip

Here's a patch on top of this branch that takes care of that, and fixes a few other minor issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants