Methods
createAudioAsset
-
Parameters
-
id: string
-
assetPath: string
-
duration: number
-
-
loop: boolean
-
createAudioPlayer
-
Parameters
createGlyphFactory
-
Parameters
-
-
fontSize: number
-
Optional baselineHeight: number
-
Optional fontColor: string
-
Optional strokeWidth: number
-
Optional strokeColor: string
-
Optional strokeOnly: boolean
-
Optional fontWeight: FontWeight
createImageAsset
- createImageAsset(id: string, assetPath: string, width: number, height: number): ImageAsset
-
Parameters
-
id: string
-
assetPath: string
-
width: number
-
height: number
createScriptAsset
- createScriptAsset(id: string, assetPath: string): ScriptAsset
-
Parameters
-
id: string
-
assetPath: string
createSurface
- createSurface(width: number, height: number): Surface
-
Parameters
-
width: number
-
height: number
createSurfaceAtlas
- createSurfaceAtlas(width: number, height: number): SurfaceAtlas
-
Parameters
-
width: number
-
height: number
createTextAsset
- createTextAsset(id: string, assetPath: string): TextAsset
-
Parameters
-
id: string
-
assetPath: string
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
-
-
loop: boolean
-
useRealSize: boolean