Skip to main content

UpdateFunction

The UpdateFunction type represents the function that is called every frame to update the state of an object in the game.


Definition​

type UpdateFunction = (deltaTime: number) => void;

Parameters​

  • deltaTime
    • Type: number
    • The time elapsed since the last frame.

Return Value​

  • void