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

Implement replay seeking #62

Open
nmlgc opened this issue Aug 6, 2024 · 0 comments
Open

Implement replay seeking #62

nmlgc opened this issue Aug 6, 2024 · 0 comments
Labels
Enhancement New feature or request Gameplay ~>1 push Projected number of pushes needed. Might turn out to get more expensive!

Comments

@nmlgc
Copy link
Owner

nmlgc commented Aug 6, 2024

Why should we just have fast-forwarding? Let's implement full seeking across an entire replay, complete with rewinding and single-frame stepping features.

The most robust way of implementing rewind will probably involve snapshots of the entire game state at regular keyframe intervals, which we can then use as a base for re-simulating any frames inbetween. This requires a great deal of refactoring to move all of the currently global game state into a structure.

The main reasons for doing this in-engine:

  • Debugging, allowing devs to seek back to a previous frame and step through its code.
  • We could have another feature where the player can take control at any frame of the replay, implementing some sort of basic thprac functionality.

If you just want to watch a replay though, video export would be a cheaper alternative.

@nmlgc nmlgc added Enhancement New feature or request Gameplay ~>1 push Projected number of pushes needed. Might turn out to get more expensive! labels Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Gameplay ~>1 push Projected number of pushes needed. Might turn out to get more expensive!
Projects
None yet
Development

No branches or pull requests

1 participant