Properties
Optional background
background?: string
Optional blur
blur?: boolean
canvas
canvas: HTMLCanvasElement | { canvas: HTMLCanvasElement; ctx: CanvasRenderingContext2D }
Optional debug
debug?: boolean
Optional debugRendering
debugRendering?: boolean
defaultScene
defaultScene: string
Optional dprScale
dprScale?: boolean
Optional focus
focus?: boolean
Optional pauseRenderingOnBlur
pauseRenderingOnBlur?: boolean
Optional physics
physics
?: { customTick
?: boolean; debug
?: boolean; enabled
: boolean; gravity
?: Vector2Like }Type declaration
Optional customTick?: boolean
Optional debug?: boolean
enabled: boolean
Optional poolingInterval
poolingInterval?: number
Optional roundPixels
roundPixels?: boolean
Optional smartScale
smartScale?: boolean
Optional splashScreen
splashScreen?: { extraDuration?: number; img?: string }
Type declaration
Optional extraDuration?: number
Optional img?: string
Duck.Types.Game.Config
CSS background color of the canvas (hint: to fill a scene with a background color, use scene.add.misc.canvasModulate)
undefined
1.0.0-beta