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

Tool to convert Sprite Sheet in PNG to HEX file that can be loaded as a resource #11

Open
plattysoft opened this issue Jan 9, 2024 · 0 comments

Comments

@plattysoft
Copy link
Owner

plattysoft commented Jan 9, 2024

Aseprite can export a png sprite sheet, but msxbas2rom prefers to import binary hexadecimal files (compressed with pletter). This would be the most convenient way to work with sprites if we had such a tool.

Similar code examples exist, so it should not be too complicated to do

Combine the PNG reader for sprites from RetroDeluxe and the hex output from nMSXTiles into a command line tool that reads a png and creates a sprite sheet, actually, nMSXTiles does png parsing too

https://github.com/pipagerardo/nMSXtiles/blob/master/src/cscreenw.cpp

  • ExportScreenBinPletter
  • ImportTilesPNGAdv

https://github.com/retrodeluxe/rlengine-msx/blob/master/tools/png2header.c

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

No branches or pull requests

1 participant