Class Index | File Index

Classes


Class VisualGameObject


Defined in: VisualGameObject.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
The base class for all elements that appear in the game.
Field Summary
Field Attributes Field Name and Description
 
The image that will be displayed by this object
Method Summary
Method Attributes Method Name and Description
 
draw(dt, context, xScroll, yScroll)
Draws this element to the back buffer
 
Clean this object up
 
startupVisualGameObject(image, x, y, z)
Initialises this object
Class Detail
VisualGameObject()
The base class for all elements that appear in the game.
Author: Matthew Casperson.
Field Detail
{Image} image
The image that will be displayed by this object
Method Detail
draw(dt, context, xScroll, yScroll)
Draws this element to the back buffer
Parameters:
{Number} dt
Time in seconds since the last frame
{CanvasRenderingContext2D} context
{Number} xScroll
{Number} yScroll

shutdownVisualGameObject()
Clean this object up

startupVisualGameObject(image, x, y, z)
Initialises this object
Parameters:
{Image} image
The image to be displayed
{Number} x
{Number} y
{Number} z

Documentation generated by JsDoc Toolkit 2.1.1 on Sun Jun 21 2009 13:06:44 GMT+1000 (EST)