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

Serialize GameState #42

Open
QuinnBast opened this issue Sep 30, 2020 · 1 comment
Open

Serialize GameState #42

QuinnBast opened this issue Sep 30, 2020 · 1 comment
Labels
Core Core libraries

Comments

@QuinnBast
Copy link
Contributor

Enhancement Description

The game library should have the ability to serialize the whole game state at a given time. This means that we can fast foward to Tick 100, and pack the current game state as a JSON. Then we can easily just unpack that JSON in order to 'load' the state at that time. This will be extremely useful for things like:

  • Server downtimes; just pack the state at tick 100 & unpack it at tick 120 to push the game out 20 ticks.
  • Puzzle editor; easily let players load the state from an ongoing game to "sandbox" things in their current games.
  • Long games; pack the game state when sending events so that the device isn't storing a significant amount of memory

This ties very closely to #38. #38 should be more focused on the functionality required for the puzzle editor for example: win conditions for the puzzle, etc.

Solution

JSON all the way.

@QuinnBast QuinnBast added the enhancement New feature or request label Sep 30, 2020
@QuinnBast QuinnBast self-assigned this Sep 30, 2020
@CyberGaming424
Copy link

I'll see what I can do.

@QuinnBast QuinnBast removed their assignment Nov 14, 2021
@QuinnBast QuinnBast added Core Core libraries and removed enhancement New feature or request labels Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Core libraries
Projects
None yet
Development

No branches or pull requests

2 participants