Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ResourceFactory

Hierarchy

  • ResourceFactory

Index

Methods

createAudioAsset

createAudioPlayer

createGlyphFactory

  • Parameters

    • fontFamily: FontFamily | string | (string | SansSerif | Serif | Monospace)[]
    • fontSize: number
    • Optional baselineHeight: number
    • Optional fontColor: string
    • Optional strokeWidth: number
    • Optional strokeColor: string
    • Optional strokeOnly: boolean
    • Optional fontWeight: FontWeight

    Returns GlyphFactory

createImageAsset

  • createImageAsset(id: string, assetPath: string, width: number, height: number): ImageAsset
  • Parameters

    • id: string
    • assetPath: string
    • width: number
    • height: number

    Returns ImageAsset

createScriptAsset

  • createScriptAsset(id: string, assetPath: string): ScriptAsset
  • Parameters

    • id: string
    • assetPath: string

    Returns ScriptAsset

createSurface

  • createSurface(width: number, height: number): Surface
  • Parameters

    • width: number
    • height: number

    Returns Surface

createSurfaceAtlas

  • createSurfaceAtlas(width: number, height: number): SurfaceAtlas
  • Parameters

    • width: number
    • height: number

    Returns SurfaceAtlas

createTextAsset

  • createTextAsset(id: string, assetPath: string): TextAsset
  • Parameters

    • id: string
    • assetPath: string

    Returns TextAsset

createVideoAsset

  • createVideoAsset(id: string, assetPath: string, width: number, height: number, system: VideoSystem, loop: boolean, useRealSize: boolean): VideoAsset
  • Parameters

    • id: string
    • assetPath: string
    • width: number
    • height: number
    • system: VideoSystem
    • loop: boolean
    • useRealSize: boolean

    Returns VideoAsset

Generated using TypeDoc