Class Index | File Index

Classes


Class RepeatingGameObject


Defined in: RepeatingGameObject.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
A class that display a repeating texture that can optionall be offset in either the x or y axis
Field Summary
Field Attributes Field Name and Description
 
The height that the final image will take up
 
How much of the scrollX and scrollY to apply when drawing
 
The width that the final image will take up
Method Summary
Method Attributes Method Name and Description
 
draw(dt, context, xScroll, yScroll)
Draws this element to the back buffer
 
drawRepeat(canvas, newPosition, newFillArea, newScrollPosition)
 
Clean this object up
 
startupRepeatingGameObject(image, x, y, z, width, height, scrollFactor)
Initialises this object
Class Detail
RepeatingGameObject()
A class that display a repeating texture that can optionall be offset in either the x or y axis
Author: Matthew Casperson.
Field Detail
{Number} height
The height that the final image will take up

{Number} scrollFactor
How much of the scrollX and scrollY to apply when drawing

{Number} width
The width that the final image will take up
Method Detail
draw(dt, context, xScroll, yScroll)
Draws this element to the back buffer
Parameters:
dt
Time in seconds since the last frame
context
The context to draw to
xScroll
The global scrolling value of the x axis
yScroll
The global scrolling value of the y axis

drawRepeat(canvas, newPosition, newFillArea, newScrollPosition)
Parameters:
canvas
newPosition
newFillArea
newScrollPosition

shutdownstartupRepeatingGameObject()
Clean this object up

startupRepeatingGameObject(image, x, y, z, width, height, scrollFactor)
Initialises this object
Parameters:
image
x
y
z
width
height
scrollFactor
Returns:
A reference to the initialised object

Documentation generated by JsDoc Toolkit 2.1.1 on Sun Jun 21 2009 16:39:50 GMT+1000 (EST)