zimporter-phaser - v1.0.48
    Preparing search index...

    Class ZScene

    Index

    Constructors

    • Parameters

      • _sceneId: string
      • phaserScene: Scene

      Returns ZScene

    Properties

    assetTypes: Map<AssetType, any> = ...

    Accessors

    Methods

    • Applies visual filters (such as drop shadow) to a Phaser container or text.

      Parameters

      • obj: any

        The object containing filter data.

      • tf: GameObject

        The Phaser GameObject to apply filters to.

      Returns void

    • Loads a bitmap font from XML and creates a bitmap text object.

      Parameters

      • xmlUrl: string

        The URL to the XML font data.

      • textToDisplay: string

        The text to display.

      • fontName: string

        The name of the font.

      • fontSize: number

        The size of the font.

      • callback: Function

        Callback to invoke when the font is loaded.

      Returns Promise<null>

      A promise that resolves when the font is loaded.

    • Destroys the scene and its assets, freeing resources.

      Returns Promise<void>

    • Parameters

      • _templateName: string

      Returns Record<string, AnimTrackData[]>

    • Return the inner design resolution adjusted for current orientation.

      Returns { height: number; width: number }

    • Parameters

      • _placementsObj: SceneData

      Returns void

    • Parameters

      • assetBasePath: string
      • _loadCompleteFnctn: Function

      Returns Promise<void>

    • Loads the scene's assets and fonts, then initializes the scene.

      Parameters

      • assetBasePath: string

        The base path for assets.

      • placementsObj: SceneData
      • _loadCompleteFnctn: Function

        Callback function to invoke when loading is complete.

      Returns Promise<void>

    • Parameters

      • OptionalphaserScene: Scene
      • loadChildren: boolean = true

      Returns void

    • Loads a texture from a given URL.

      Parameters

      • textureUrl: string

        The URL of the texture.

      Returns Promise<void>

      A promise that resolves to the loaded Phaser.Texture.

    • Parameters

      • width: number
      • height: number

      Returns void

    • Parameters

      • value: string

      Returns any

    • Parameters

      • value: string

      Returns value is AssetType