The game that is being rendered
If fullscreen should be always activated
Add the standard events handler.
The game canvas must have been initialized before calling this.
Convert a point from the canvas coordinates to the dom element container coordinates.
The point in the canvas coordinates.
The point to return.
The point in the dom element container coordinates.
Create the canvas on which the game will be rendered, inside the specified DOM element, and
setup the rendering of the game.
If you want to use your own canvas, use initializeRenderers
and initializeCanvas
instead.
The parent element to which the canvas will be added.
Dispose the renderers (PixiJS and/or Three.js) as well as DOM elements used for the game (the canvas, if specified, and the additional DOM container created on top of it to allow display HTML elements, for example for text inputs).
Optional
removeCanvas: booleanIf true, the canvas will be removed from the DOM.
Return the scale factor between the renderer height and the actual canvas height, which is also the height of the container for DOM elements to be superimposed on top of it.
Useful to scale font sizes of DOM elements so that they follow the size of the game.
Static
getStatic
get
The renderer for a gdjs.RuntimeGame using Pixi.js.