Data storage test

3,238
0
Published 2019-09-11
I am now using adapted techniques from this project to store a great many adventures in this project - https://scratch.mit.edu/projects/329352910/ - the actual decompression is hidden completely by a progress bar.

Storing data in variables allows me to fit 4 or 5 adventures into a project. The restriction is imposed by the maximum json size allowed in a project. If I store the data as images and scan them at run-time then I can store a great many more adventures into a single project. It takes around 7 seconds on my computer to load the Zork adventure with this method but I'm interested to see how long it takes on other computers.

Credit to @gor-dee for a large improvement in speed from his suggestion to use transparency and "touching sprite" as opposed to using black and white and "touching black".

#techdemo #description(When I was working on some projects that required massive amounts of data I had to come up with a way of storing the data without pushing the project.json file over the size limit. This was my solution and has been used in several of my text adventure games.)