Class to hold current game time, both elapse and delta from last frame.
Kind: global class
Number
create the gametime object with current time.
Current timestamp
Kind: instance property of GameTime
Delta time struct. Contains: milliseconds, seconds.
Kind: instance property of GameTime
Elapsed time struct. Contains: milliseconds, seconds.
Kind: instance property of GameTime
Delta time, in seconds, since last frame.
Kind: instance property of GameTime
Total time, in seconds, since Shaku was initialized.
Kind: instance property of GameTime
Raw timestamp in milliseconds. This value updates only as long as you run Shaku frames, and continue to update even if game is paused.
Kind: instance property of GameTime
Number
Get raw timestamp in milliseconds. This value updates only as long as you run Shaku frames, and continue to update even if game is paused.
Kind: static method of GameTime
Returns: Number
- raw timestamp in milliseconds.
Reset elapsed and delta time.
Kind: static method of GameTime
Reset current frame’s delta time.
Kind: static method of GameTime