BlueAmulet / picolove

Pico-8 Reimplementation in Love2D
zlib License
101 stars 12 forks source link

Add cartdata support, for persistent storage #31

Open tobiasvl opened 6 years ago

tobiasvl commented 6 years ago

I'm not at all sure this is the best approach, but it's a naive attempt.

I made some choices:

There might be more efficient ways to do the serializing and file handling. I'm pretty new to LÖVE. We could perhaps even do away with the serializing and the entire pico8.cartdata table now that it's just a transparent cache, and scan to the correct location in the file every time instead... Suggestions welcome.