final case class GameTime(running: Seconds, delta: Seconds, targetFPS: 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.

trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def doubleByTime(value: Double): Double
def floatByTime(value: Float): Float
def intByTime(value: Int): Int
def setTargetFPS(fps: Int): GameTime

Inherited methods

def productElementNames: Iterator[String]
Inherited from
def productIterator: Iterator[Any]
Inherited from

Concrete fields

lazy val multiplier: Double