m.prefab.js

please.add_autoscale

please.add_autoscale (max_height)

Use this to add a mechanism for which, when the rendering canvas has the “fullscreen” class, will automatically scale the canvas to conform to the window’s screen ratio, making the assumption that css is then used to scale up the canvas element. The optional ‘max_height’ value can be passed to determine what the maximum height of the element may be. This defaults to 512, though a power of two is not required.

One can override the max_height option by setting the “max_height” attribute on the canvas object.

please.LoadingScreen

please.LoadingScreen ()

Creates a simple loading screen placeholder RenderNode.

In the future, this will be animated to show the progress of pending assets.

Table Of Contents

Previous topic

m.particles.js

Next topic

m.qa.js

This Page