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
P#126955 2023-03-11 08:34


[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-20 01:39:15 | 0.012s | Q:16