@studiokeywi/banjo - v0.0.1
    Preparing search index...

    Interface EngineEvents

    Events emitted by the engine

    interface EngineEvents {
        enginePaused: EnginePaused;
        engineStarted: EngineStarted;
        engineStopped: EngineStopped;
        rendered: RenderRan;
        skippedFrames: SkippedFrames;
        updated: UpdateRan;
        [key: string]: Event;
    }

    Hierarchy

    Indexable

    • [key: string]: Event
    Index

    Properties

    enginePaused: EnginePaused

    Emitted when Engine.pause pauses or unpauses the engine. Contains the current pause state and the time as provided by performance.now()

    engineStarted: EngineStarted

    Emitted when Engine.start begins the loop. Contains the time as provided by performance.now()

    engineStopped: EngineStopped

    Emitted when Engine.stop ends the loop. Contains the time as provided by performance.now()

    rendered: RenderRan

    Emitted every display tick when the EngineConfig.render function is called

    skippedFrames: SkippedFrames

    Emitted if the elapsed time from the previous display tick is greater than 1 second. Contains the amount of time that elapsed beyond 1 second as provided by the difference of two performance.now() calls

    updated: UpdateRan

    Emitted every game tick when the EngineConfig.update function is called