Wes Mantooth - HTML5 Canvas Game Engine - Version 2.x - by Jeremy Heminger

Classes organised alphabetically

Draw

grid -> {Void}

draws a grid to the canvas with optional origin

Name Type Description
iIntegerreference to the canvas
w Number The width of the grid
h Number The height of the grid
u Number grid unit size [x : y]
o Boolean if true an origin is drawn 1/2 [width,height]
callback Function

gridp -> {Void}

draws a grid to the canvas with optional origin, but with perspective

Name Type Description
iIntegerreference to the canvas
w Number The width of the grid
h Number The height of the grid
u Number grid unit size [x : y]
p Number
o Boolean if true an origin is drawn 1/2 [width,height]
callback Function