Skip to content

packagedRuntimeInit

packagedRuntimeInit(config): object

Defined in: runtime/packagedRuntime.ts:226

The initRuntime arguments a packaged config declares — everything applied to a LIVE app rather than baked into its construction. The twin of packagedAppOptions; between them a host names the config once.

Pick<PackagedGameConfig, "physicsEnabled" | "physicsConfig" | "audioConfig" | "uiTheme" | "uiThemeColors" | "achievements" | "steamAppId" | "screenFit" | "aot" | "debugChannel">

object

optional achievements?: string[]

optional aot?: object

manifest: AotManifest

module: string

optional audioConfig?: AudioProjectConfig

optional debugChannel?: DebugChannelConfig

optional physicsConfig?: Physics2DPluginConfig

optional physicsEnabled?: boolean

optional screenFit?: object

designHeight: number

designWidth: number

matchWidthOrHeight: number

scaleMode: number

optional steamAppId?: number

optional uiTheme?: "light"

optional uiThemeOverrides?: ThemeOverrides