F: 70
F1: 112
F10: 121
F11: 122
F12: 123
F2: 113
F3: 114
F4: 115
F5: 116
F6: 117
F7: 118
F8: 119
F9: 120
Find a path between two positions in the grid
find: function( xs, ys, xe, ye )
Find a path between two points in 2D space, or two gamvas.AStarNode elements
find: function( nxs, nys, xe, ye )
The Box2D b2Fixture, if physics is enabled
this.fixture
Sets the maximum of rendertime in seconds until a frame is skipped.
frameLimit: 0.1
The physical property of friction Defines the friction of objects.
this.friction
The path cost function, should return a value that represents how hard it is to reach the current node
g: function( n )
G: 71
returns all the actors added with gamvas.State.addActor as array, sorted by their gamvas.Actor.layer
getActors: function()
Get the canvas element
getCanvas: function()
Get the width and height of the canvas
getCanvasDimension: function()
Get the position in DOM of the current canvas
getCanvasPosition: function()
Gets the clipping rectangle of a image as gamvas.Rect
this.getClipRect = function()
Get the 2D context object of the canvas
getContext2D: function()
Get the current gamvas.Animation object that is playing
getCurrentAnimation: function()
Get the current gamvas.ActorState the actor is in
getCurrentState: function()
Get the current state
getCurrentState: function()
Returns the current frames per second.
getFPS: function()
Returns the global timescale
getGlobalTimeScale: function()
Load a image from url
gamvas.Resource.prototype.getImage = function( url )
Returns the time elapsed since the last call to render a frame.
getLastFrameLength: function()
Get the milliseconds since gamvas was started.
getMilliseconds: function()
Get the current particle emission rate
getParticleRate: function()
Gets the position of a DOM element
getPosition: function( el )
Returns the position of the mouse as gamvas.Vector2D
getPosition: function( ev )
Get the seconds since gamvas was started.
getSeconds: function()
Load a sound/music file from url
gamvas.Resource.prototype.getSound = function( url )
Get a certain state
getState: function( name )
Get the field value of position x,y in the grid
getValue: function( x, y )
Get the Box2D world object
getWorld: function()
Returns the x position of the mouse over the canvas.
getX: function( ev )
Returns the y position of the mouse over the canvas.
getY: function( ev )
The heuristic estimate
h: function( n, t )
H: 72
Test if real fullscreen more is supported
hasFullScreen: function()
Test if device supports multi touch operations
hasMultiTouch: function()
The height of a single frame in pixels
this.height
The height of the rectangle
this.height
HOME: 36
I: 73
Description
init: function()
Gets called once on state initialization.
init: function()
The init function is called only once per state to initialize it.
init: function()
INSERT: 45
Check if the actor is active
isActive: function()
Test if we are currently running in real fullscreen mode
isFullScreen: function()
Check if a key is pressed
isPressed: function( k )
Check if a mouse button is pressed
isPressed: function( k )
Test if the sound is ready to play
gamvas.Sound.prototype.isReady = function()
Tests if a variable is set
isSet: function( v )
J: 74
K: 75