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

Feature/framerate independence #36

Merged
merged 1 commit into from
Oct 23, 2021
Merged

Conversation

obscurelyme
Copy link
Owner

This PR introduces framerate independence to the game code. Also provides some generic events to pause/unpause the game. SceneManager will push Scene Load events which can also unpause the game. A global timer is present in the core game loop and it's delta time is passed down to the current scene, from there the current scene can call Update on any Entity with a deltaTime floating point value and the entity can leverage the deltaTime as part of it's movement/physics update.

@obscurelyme obscurelyme linked an issue Oct 21, 2021 that may be closed by this pull request
@obscurelyme obscurelyme self-assigned this Oct 21, 2021
@obscurelyme obscurelyme merged commit 926a4f0 into master Oct 23, 2021
@obscurelyme
Copy link
Owner Author

@obscurelyme obscurelyme deleted the feature/framerate-independence branch November 22, 2021 16:44
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

Successfully merging this pull request may close these issues.

Timing Mechanism for Pausing/Unpausing game
1 participant