Options
All
  • Public
  • Public/Protected
  • All
Menu
classdesc

Creates a DuckEngine Cutscene

description

The Cutscene Class. Create a cutscene

since

1.0.0-beta

Hierarchy

  • Cutscene

Index

Constructors

constructor

Properties

Protected camera

camera: Camera

Protected config

game

game: Game
memberof

Cutscene

description

Game instance

since

1.0.0-beta

index

index: number
memberof

Cutscene

description

The index of the current cutscene step

since

1.0.0-beta

Protected instructions

instructions: Instructions

Protected mainObject

Protected otherCameras

otherCameras: Camera[]

Protected otherObjects

running

running: boolean
memberof

Cutscene

description

The state of the Cutscene running

since

1.0.0-beta

Protected steps

steps: Step[]

Methods

Protected init

  • init(): void

next

  • next(): void

off

on

  • memberof

    Cutscene

    description

    Adds an event listener to Cutscene

    since

    1.0.0-beta

    Parameters

    • type: OnListenerType

      Listener type

    • cb: (...args: any) => void

      Callback function

        • (...args: any): void
        • Parameters

          • Rest ...args: any

          Returns void

    Returns void

sleep

  • sleep(ms: number): Promise<unknown>
  • memberof

    Cutscene

    description

    Sleeps/Waits for a duration

    since

    1.0.0-beta

    Parameters

    • ms: number

      Duration in millisecond

    Returns Promise<unknown>

start

  • start(): void
  • memberof

    Cutscene

    description

    Starts the cutscene

    emits

    EVENTS.CUTSCENE.START

    since

    1.0.0-beta

    Returns void

stop

  • stop(): void

update

  • update(): void
  • memberof

    Cutscene

    description

    Updates the cutscene, must be in a loop or interval and come before Cutscene.next()

    since

    1.0.0-beta

    Returns void

Generated using TypeDoc