indigo.shared.time

Members list

Type members

Classlikes

object FPS

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
FPS.type
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.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object GameTime

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
GameTime.type
object Millis

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Millis.type
object Seconds

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Seconds.type

Types

opaque type FPS
opaque type Millis

Represents a unit of time in milliseconds

Represents a unit of time in milliseconds

Attributes

opaque type Seconds

Represents a unit of time in seconds

Represents a unit of time in seconds

Attributes