Log In  


Cart #stringtospritereader-0 | 2023-03-11 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

I saw some cartridges had large images that would take the whole space of the spritesheet. To prevent that, they use strings to store data.

The bugs:

  • For some reason, the image contains black pixels at the left

Colours:

  • Q: 0
  • W: 1
  • E: 2
  • R: 3
  • T: 4
  • Y: 5
  • U: 6
  • I: 7
  • O: 8
  • P: 9
  • A: 10
  • S: 11
  • D: 12
  • F: 13
  • G: 14
  • H: 15

Special characters:

  • J: New line
  • K: Space

An example of a string that generates the PICO-8 colour palette

kkkkwwwweeeerrrrj
kkkkwwwweeeerrrrj
kkkkwwwweeeerrrrj
kkkkwwwweeeerrrrj
ttttyyyyuuuuiiiij
ttttyyyyuuuuiiiij
ttttyyyyuuuuiiiij
ttttyyyyuuuuiiiij
ooooppppaaaassssj
ooooppppaaaassssj
ooooppppaaaassssj
ooooppppaaaassssj
ddddffffgggghhhhj
ddddffffgggghhhhj
ddddffffgggghhhhj
ddddffffgggghhhh



[Please log in to post a comment]