Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
6.5 Add player update to game's OnUpdate method
' 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