L | |
L, gamvas.key | |
layer, gamvas. | |
leave | |
LEFT | |
length, gamvas. | |
lifetime, gamvas. | |
loading, gamvas. | |
loop, gamvas. | |
M | |
M, gamvas.key | |
Macros | |
MIDDLE, gamvas. | |
move | |
mute, gamvas. | |
N | |
N, gamvas.key | |
name | |
normalized, gamvas. | |
NUM_0, gamvas.key | |
NUM_1, gamvas.key | |
NUM_2, gamvas.key | |
NUM_3, gamvas.key | |
NUM_4, gamvas.key | |
NUM_5, gamvas.key | |
NUM_6, gamvas.key | |
NUM_7, gamvas.key | |
NUM_8, gamvas.key | |
NUM_9, gamvas.key | |
numberOfFrames, gamvas. | |
NUMLOCK, gamvas.key | |
NUMPAD_0, gamvas.key | |
NUMPAD_1, gamvas.key | |
NUMPAD_2, gamvas.key | |
NUMPAD_3, gamvas.key | |
NUMPAD_4, gamvas.key | |
NUMPAD_5, gamvas.key | |
NUMPAD_6, gamvas.key | |
NUMPAD_7, gamvas.key | |
NUMPAD_8, gamvas.key | |
NUMPAD_9, gamvas.key | |
NUMPAD_ADD, gamvas.key | |
NUMPAD_DECIMALPOINT, gamvas.key | |
NUMPAD_DIVIDE, gamvas.key | |
NUMPAD_MULTIPLY, gamvas.key | |
NUMPAD_SUBTRACT, gamvas.key | |
O | |
O, gamvas.key | |
onCollision, gamvas. | |
onCollisionEnter, gamvas. | |
onCollisionLeave, gamvas. | |
onKeyDown | |
onKeyUp | |
onMouseDown | |
onMouseMove | |
onMouseUp | |
onParticleEnd, gamvas. | |
onTouchDown, gamvas. | |
onTouchMove, gamvas. | |
onTouchUp, gamvas. |
L: 76
Integer value used for z-sorting on automatic draw through gamvas.State.addActor
this.layer
Gets called when the state is left.
leave: function()
The enter function is called when the state is left.
leave: function()
LEFT: 37
Defines the left mouse button
LEFT: 0
Return the length of the vector in pixels.
gamvas.Vector2D.prototype.length = function()
Overwrite for a custom loading screen
loading: function( t )
Play the sound looping (e.g.
gamvas.Sound.prototype.loop = function()
M: 77
Defines the middle mouse button
MIDDLE: 1
Move the actor
move: function( x, y )
Move the animation
move: function( x, y )
Move the camera, relative to its current position.
gamvas.Camera.prototype.move = function( x, y )
Move the image
this.move = function( x, y )
Mute the sound
gamvas.Sound.prototype.mute = function()
N: 78
The name of the actor
this.name
The name of the actor state
this.name
The name of the animation.
this.name
The name of the state, must be unique within all states
this.name
Returns the normalized vector of a vector.
gamvas.Vector2D.prototype.normalized = function()
NUM_0: 48
NUM_1: 49
NUM_2: 50
NUM_3: 51
NUM_4: 52
NUM_5: 53
NUM_6: 54
NUM_7: 55
NUM_8: 56
NUM_9: 57
The the frame count of the animation
this.numberOfFrames
NUMLOCK: 144
NUMPAD_0: 96
NUMPAD_1: 97
NUMPAD_2: 98
NUMPAD_3: 99
NUMPAD_4: 100
NUMPAD_5: 101
NUMPAD_6: 102
NUMPAD_7: 103
NUMPAD_8: 104
NUMPAD_9: 105
NUMPAD_ADD: 107
NUMPAD_DECIMALPOINT: 110
NUMPAD_DIVIDE: 111
NUMPAD_MULTIPLY: 106
NUMPAD_SUBTRACT: 109
O: 79
The actor starts a collision with another actor
onCollision: function( a, ni, ti, c )
The actor starts a collision with another actor
onCollisionEnter: function( a, c )
The actor leaves a collision with another actor
onCollisionLeave: function( a, c )
A key on the keyboard was pressed
onKeyDown: function( keyCode, character, ev )
A key on the keyboard was pressed
onKeyDown: function( keyCode, character, ev )
A key on the keyboard was released
onKeyUp: function( keyCode, character, ev )
A key on the keyboard was released
onKeyUp: function( keyCode, character, ev )
A mouse button was pressed
onMouseDown: function( button, x, y, ev )
A mouse button was pressed
onMouseDown: function( button, x, y, ev )
The mouse was moved
onMouseMove: function( x, y, ev )
The mouse was moved
onMouseMove: function( x, y, ev )
A mouse button was released
onMouseUp: function( button, x, y, ev )
A mouse button was released
onMouseUp: function( button, x, y, ev )
Overwrite this function to do something everytime a particle is removed
onParticleEnd: function( pos, rot, scale, vel )
A finger starts touching the display
onTouchDown: function( id, x, y, ev )
A finger is sliding over the surface
onTouchMove: function( id, x, y, ev )
A finger stopped touching the display
onTouchUp: function( id, x, y, ev )