Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wonderswan map format #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

wonderswan map format #75

wants to merge 1 commit into from

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

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.

2 participants