Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sandbox autosave #32

Open
xen-0sd opened this issue Jun 28, 2023 · 2 comments
Open

Sandbox autosave #32

xen-0sd opened this issue Jun 28, 2023 · 2 comments
Labels
enhancement New feature or request sandbox Issue relates to Sandbox Mode

Comments

@xen-0sd
Copy link

xen-0sd commented Jun 28, 2023

While the player is in sandbox mode, the engine would maintain an autosave.json file in the form of

    {
        "shape": VARIABLE_SHAPE,
        "x": VARIABLE_X,
        "y": VARIABLE_Y,
        "scale": VARIABLE_SCALE,
        "color": VARIABLE_COLOR
    },

where the variables are written to the file live as the player moves the shape around.

This would double-fix #31 and ensure not an ounce of progress is lost if the game crashes.

@SuperFromND SuperFromND added the enhancement New feature or request label Jun 28, 2023
@SuperFromND
Copy link
Contributor

I'm not opposed to the idea per-se, but so far we only save files to disk if the user explicitly triggers it (exporting in Sandbox, saving configs, opting in to logfiles via -l, etc etc). I think adding the confirmation dialog box is a good enough solution for preventing accidental creation loss for now, but I might warm up to autosaving later.

@SuperFromND SuperFromND added the sandbox Issue relates to Sandbox Mode label Jun 29, 2023
@SalsaGal
Copy link
Contributor

Maybe this could go into the system's temporary folder?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request sandbox Issue relates to Sandbox Mode
Projects
None yet
Development

No branches or pull requests

3 participants