Kiwi.Renderers.CanvasRenderer Class
Constructor
Kiwi.Renderers.CanvasRenderer
(
Kiwi.Renderes.CanvasRenderer
-
game
Parameters:
-
game
Kiwi.GameThe game that this canvas renderer belongs to.
Returns:
Kiwi.Renderes.CanvasRenderer:
Methods
_recurse
(
private
-
child
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
ObjectThe 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
(
public
-
camera
Renders all of the Elements that are on a particular camera.
Parameters:
-
camera
Kiwi.Camera