AFrameRenderer

AFrameRenderer

The A-Frame Renderer

Constructor

new AFrameRenderer(gameEngine, clientEngine)

Constructor of the Renderer singleton.

Parameters:
Name Type Description
gameEngine GameEngine

Reference to the GameEngine instance.

clientEngine ClientEngine

Reference to the ClientEngine instance.

Source:

Methods

draw()

In AFrame, we set the draw method (which is called at requestAnimationFrame) to a NO-OP. See tick() instead

Source:

init() → {Promise}

Initialize the renderer.

Source:
Returns:

Resolves when renderer is ready.

Type
Promise