Skip to content

@emile/engine


@emile/engine / rendering/renderer / RendererOptions

Interface: RendererOptions

Defined in: src/rendering/renderer.ts:12

Properties

autoInit?

optional autoInit: boolean

Defined in: src/rendering/renderer.ts:18

Wether or not to automatically initialize the renderer.

Default

ts
true

autoSize?

optional autoSize: boolean

Defined in: src/rendering/renderer.ts:52

Wether or not to auto size the renderer to the parent element.

Default

ts
true

backgroundColor?

optional backgroundColor: ColorSource

Defined in: src/rendering/renderer.ts:59

The background color of the renderer.

Default

ts
"black"

enablePixiDevTools?

optional enablePixiDevTools: boolean

Defined in: src/rendering/renderer.ts:84

Wether or not to enable the pixi dev tools.

Default

ts
false

flipYAxis?

optional flipYAxis: 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

ts
true

height?

optional height: 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

ts
-1

parentElement?

optional parentElement: 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

ts
null

scale?

optional scale: 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

ts
50

width?

optional width: 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

ts
-1