indigo.shared.time

Type members

Classlikes

object FPS
final case class GameTime(running: Seconds, delta: Seconds, targetFPS: Option[FPS])

An instance of GameTime is present on every frame, and the values it holds do not change during that frame. This allows for "synchronous" programming, where it is assumed that everything happens at the exact same time during the current frame. The most commonly used fields (e.g. for animation) are the running time of the game and the time delta since the last frame.

An instance of GameTime is present on every frame, and the values it holds do not change during that frame. This allows for "synchronous" programming, where it is assumed that everything happens at the exact same time during the current frame. The most commonly used fields (e.g. for animation) are the running time of the game and the time delta since the last frame.

Companion:
object
object GameTime
Companion:
class
object Millis
object Seconds

Types

opaque type FPS
opaque type Millis

Represents a unit of time in milliseconds

Represents a unit of time in milliseconds

opaque type Seconds

Represents a unit of time in seconds

Represents a unit of time in seconds