Say a player has a way to design a custom painting in a game. This painting should persist between playthroughs, and be stored on the spritesheet.
I know that this should be done via cstore(), but I simply do not understand how.
function painting() -- code for modifying sheet through sset() here -- cstore(A,A,L) end
What I actually need is the values for A and L.
Cheers in advance.
From the manual (https://www.lexaloffle.com/dl/docs/pico-8_manual.html#CSTORE), the parameters are destination address, source address and length.
So to copy the screen data into the spritesheet, we need to find their addresses using https://www.lexaloffle.com/dl/docs/pico-8_manual.html#Memoryhttps://www.lexaloffle.com/dl/docs/pico-8_manual.html#CSTORE : spritesheet address starts at 0x0, screen data is at 0x6000, and it takes 8k which is 8192 bytes for the length param!
Make sure to copy your cart before you try this.
[Please log in to post a comment]