new LightRenderable(myTexture) → {LightRenderable}
Default Contructior
SpriteAnimatedRenderable with light illumination
Parameters:
Name | Type | Description |
---|---|---|
myTexture |
Texture | to associate this this Renderable |
- Source:
Returns:
New instance of LightRenderable
- Type
- LightRenderable
Methods
addLight(l) → {void}
Add light to LightRenderable
Parameters:
Name | Type | Description |
---|---|---|
l |
type | Light to add |
- 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
getLightAt(index) → {Light}
Return Light at index
Parameters:
Name | Type | Description |
---|---|---|
index |
type | of Light to return |
- Source:
Returns:
light to return
- Type
- Light
numLights() → {Number}
Returns the number of Lights on this LightRenderable
- Source:
Returns:
number of lights
- Type
- Number