CTFTNKS Project Documentation - v1.3.0
    Preparing search index...

    Class UpdatableAbstract

    Parent class for all things in the game that have a step() method that is called on every game step

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    age: number = 0

    time (in milliseconds) for how long the object already exists in the game

    maxAge?: number

    optional duration in milliseconds for how long the object should still exist in the game

    Methods

    • Update method called every frame.

      Parameters

      • _dt: number

        The time elapsed since the last frame in milliseconds.

      Returns void