@emile/engine / rendering/renderer / RendererOptions
Interface: RendererOptions
Defined in: src/rendering/renderer.ts:12
Properties
autoInit?
optionalautoInit:boolean
Defined in: src/rendering/renderer.ts:18
Wether or not to automatically initialize the renderer.
Default
trueautoSize?
optionalautoSize:boolean
Defined in: src/rendering/renderer.ts:52
Wether or not to auto size the renderer to the parent element.
Default
truebackgroundColor?
optionalbackgroundColor:ColorSource
Defined in: src/rendering/renderer.ts:59
The background color of the renderer.
Default
"black"enablePixiDevTools?
optionalenablePixiDevTools:boolean
Defined in: src/rendering/renderer.ts:84
Wether or not to enable the pixi dev tools.
Default
falseflipYAxis?
optionalflipYAxis:boolean
Defined in: src/rendering/renderer.ts:77
Wether or not to flip the y axis.
True will make the y axis increase upwards (sane), false will make the y axis decrease upwards (insane).
Default
trueheight?
optionalheight:number
Defined in: src/rendering/renderer.ts:45
The height of the renderer.
If set to -1, the height will be the same as the parent element.
Default
-1parentElement?
optionalparentElement:null|HTMLElement
Defined in: src/rendering/renderer.ts:27
The parent element to attach the renderer to.
If not set, you must manually add the renderer's canvas to the DOM. Using the attach method.
Default
nullscale?
optionalscale:number
Defined in: src/rendering/renderer.ts:68
The renderer's root scale.
e.g. 50 means 1 unit in the game world is 50 pixels on the screen.
Default
50width?
optionalwidth:number
Defined in: src/rendering/renderer.ts:36
The width of the renderer.
If set to -1, the width will be the same as the parent element.
Default
-1