Created
November 26, 2016 18:41
-
-
Save codetravis/356e80e231387d59f91045136fc3a9eb to your computer and use it in GitHub Desktop.
6.5 Add player update to game's OnUpdate method
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' main.monkey | |
Method OnUpdate() | |
Local time_delta:Float = Float(engine.CalcDeltaTime())/60.0 | |
' Call the player's Character class update method | |
player.Update() | |
If engine.GetPaused() = False | |
engine.Update(time_delta) | |
End | |
End |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment