Class: TiledGameObject

TiledGameObject(renderableObj) → {TiledGameObject}

new TiledGameObject(renderableObj) → {TiledGameObject}

Infinitely tiled, assume X/Y alignments
Parameters:
Name Type Description
renderableObj Renderable Renderable object to tile on screen
Source:
Returns:
new instance of TiledGameObject
Type
TiledGameObject

Methods

_drawTile(aCamera) → {void}

Layout and draw the tiles
Parameters:
Name Type Description
aCamera Camera Camera to draw to
Source:
Returns:
Type
void

draw(aCamera) → {void}

Draw function called by GameLoop
Parameters:
Name Type Description
aCamera Camera Camera to draw to
Source:
Returns:
Type
void

setIsTiled(t) → {undefined}

Set the tiling state
Parameters:
Name Type Description
t Boolean tiling state of TiledGameObject
Source:
Returns:
Type
undefined

shouldTile() → {Boolean}

Return the tiling state of the tiles
Source:
Returns:
true if this should tile
Type
Boolean