I am horrible at programming, but I thought I'd ask whether anyone else has experience doing something like this in a twine game. I searched for this to no real success. It's pretty simple really. I want a basic drawing system in my twine game with the output stored in some way inside the twine save file.
If you think I would be better off switching to another story format, or to twine 2, just keep in mind that I do need to have a save system.
Thanks.
Comments
PS, If that IS the one... you add it to your Story JavaScript page
Could be wrong.
Believe me... I know you know.
It may be possible, depending on Sketch.js and how you're using it, to save a description of the steps required to create these images (if you're letting it do most of the work) which might save space. Otherwise, you're probably going to have to save the final raster images (bitmap or png as you noted) and saving raster images is likely not going to end well, unless you're only going to be saving very few of them and they're small.
The basic issue is that saves are stored within Web Storage, and you cannot rely on there being more than about 5 MiB of that available (of which only half, 2.5 MiB, is generally usable), with less being a very real possibility. Since everything that goes into a save has to fit within that limit, hopefully you can see the issue with stuffing raster images into it.
Twine 1 vs. 2 is irrelevant to this problem and, AFAIK, this will be an issue for all story formats, so switching won't help you either.