Skip to content

Serializing arcade types to disk (spritelist, etc) #1704

@gran4

Description

@gran4

Enhancement request:

Can we add basic saving and loading using pickle?

What should be added/changed?

Add basic saving and loading using pickle?

What would it help with?

Let people save easier. Would make saving and loading viable in game jams.
I have code for it but @einarf keeps telling me to discuss things like this first.

Here's the idea:

Create a function that Copys and converts a Sprite list to a list and access a new .save function. Give the save func the game so it can access other relevant SpriteLists?

Then using that function, the user can save any relevant information and save it to pickle. (Sprites in SpriteLists won't save)

Then when loading it in, the user can put the Sprites into the revelant SpriteList(s) again. For each sprite, the user can access a new .load function. SImilar to load, give the save func the game so it can access other relevant SpriteLists?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions