Skip to main content
The Game module exposes engine globals that are updated each tick. All fields are readonly.

Fields

Use Game.frameTime to make any per-frame calculation frame-rate independent. Multiply velocities, animation deltas, and lerp factors by Game.frameTime so they behave the same at 60 FPS and 300 FPS.