Memory icon indicating copy to clipboard operation
Memory copied to clipboard

Generate Playdate friendly PNG (Sprite?)

Open Templarian opened this issue 3 years ago • 3 comments

Need developer input to figure out the best format to package these for Playdate. For microcontrollers we package in a sprite map and then import via a mapping that can be used.

Ex:

  • export const IconAccount = [source, 22, 1, 2];
  • The array is then used as... <image resource>, <size>, 1 * <size>, 2 * <size>.

Looking at the docs it's expecting a .png file. So the question is what is the easiest format to bundle this mapping / image?

Templarian avatar Aug 25 '22 18:08 Templarian

Got a reply in the reddit thread.

Will use the memory-table-22-22.png naming format to make a sprite map then make a file with the mapping.

Templarian avatar Aug 26 '22 18:08 Templarian

Done with example. https://github.com/Pictogrammers/Memory/tree/main/playdate

playdate-random

Templarian avatar Aug 29 '22 04:08 Templarian

If anyone knows C as the docs say let me know what that should look like.

Templarian avatar Aug 29 '22 04:08 Templarian