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

Remake scene state machine using a stack #97

Open
3 tasks
FranzPoize opened this issue Jun 7, 2023 · 0 comments
Open
3 tasks

Remake scene state machine using a stack #97

FranzPoize opened this issue Jun 7, 2023 · 0 comments
Assignees

Comments

@FranzPoize
Copy link
Contributor

FranzPoize commented Jun 7, 2023

There is several problem with the current implementation

  • It is not flexible there is only one scene and no way to partially cleanup a scene
  • Scene are instantiated at the game startup which leads to a complicated lifecycle

What the new state machine should look like:

  • a scene stack that can be poped and pushed onto
  • a transition system that should be able to transfer information between scene if necessary
  • scenes should be instantiated when they're needed and destroyed when removed from the stack

The last point leads to an issue of instantiating a lot of system at scene instantiation which should be taken care of.

@FranzPoize FranzPoize self-assigned this Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant