API Docs for: 1.4.0
Show:

Kiwi.Renderers.CanvasRenderer Class

Module: Renderers
Parent Module: Kiwi

Constructor

Kiwi.Renderers.CanvasRenderer

(
  • game
)
Kiwi.Renderes.CanvasRenderer

Parameters:

  • game Kiwi.Game

    The game that this canvas renderer belongs to.

Returns:

Kiwi.Renderes.CanvasRenderer:

Item Index

Properties

Methods

_recurse

(
  • child
)
private

This method recursively goes through a State's members and runs the render method of each member that is a Entity. If it is a Group then this method recursively goes through that Groups members the process that happened to the State's members happens to the Group's members.

Parameters:

  • child Object

    The child that is being checked.

boot

() public

The boot method is executed when all of the DOM elements that are needed to play the game are ready.

objType

() String public

Returns the type of object that this is.

Returns:

String:

"CanvasRenderer"

render

(
  • camera
)
public

Renders all of the Elements that are on a particular camera.

Parameters:

Properties

_currentCamera

Kiwi.Camera private

The camera that is currently being used to render upon.

_game

Kiwi.Game private

The game that this object belongs to.