Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
F
 F, gamvas.key
 F1, gamvas.key
 F10, gamvas.key
 F11, gamvas.key
 F12, gamvas.key
 F2, gamvas.key
 F3, gamvas.key
 F4, gamvas.key
 F5, gamvas.key
 F6, gamvas.key
 F7, gamvas.key
 F8, gamvas.key
 F9, gamvas.key
 find
 fixture, gamvas.Actor
 frameLimit, gamvas.screen
 friction, gamvas.Actor
 Functions
G
 g, gamvas.AStarNode
 G, gamvas.key
 gamvas
 gamvas.Actor
 gamvas.ActorState
 gamvas.AI
 gamvas.Animation
 gamvas.AStarGrid
 gamvas.AStarGridNode
 gamvas.AStarMap
 gamvas.AStarNode
 gamvas.Camera
 gamvas.Class
 gamvas.config
 gamvas.dom
 gamvas.event
 gamvas.Image
 gamvas.key
 gamvas.mouse
 gamvas.ParticleEmitter
 gamvas.physics
 gamvas.physics.UserData
 gamvas.Rect
 gamvas.Resource
 gamvas.screen
 gamvas.Sound
 gamvas.state
 gamvas.State
 gamvas.timer
 gamvas.Vector2D
 getActors, gamvas.State
 getCanvas, gamvas
 getCanvasDimension, gamvas
 getCanvasPosition, gamvas
 getClipRect, gamvas.Image
 getContext2D, gamvas
 getCurrentAnimation, gamvas.Actor
 getCurrentState
 getFPS, gamvas.screen
 getGlobalTimeScale, gamvas.timer
 getImage, gamvas.Resource
 getLastFrameLength, gamvas.screen
 getMilliseconds, gamvas.timer
 getParticleRate, gamvas.ParticleEmitter
 getPosition
 getSeconds, gamvas.timer
 getSound, gamvas.Resource
 getState, gamvas.state
 getValue, gamvas.AStarGrid
 getWorld, gamvas.physics
 getX, gamvas.mouse
 getY, gamvas.mouse
H
 h, gamvas.AStarNode
 H, gamvas.key
 hasFullScreen, gamvas
 hasMultiTouch, gamvas
 height
 HOME, gamvas.key
I
 I, gamvas.key
 init
 INSERT, gamvas.key
 isActive, gamvas.Actor
 isFullScreen, gamvas
 isPressed
 isReady, gamvas.Sound
 isSet, gamvas
J
 J, gamvas.key
K
 K, gamvas.key
 KINEMATIC, gamvas.physics
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: function(xs,
ys,
xe,
ye)
Find a path between two positions in the grid
find: function(nxs,
nys,
xe,
ye)
Find a path between two points in 2D space, or two gamvas.AStarNode elements
this.fixture
The Box2D b2Fixture, if physics is enabled
frameLimit: 0.1
Sets the maximum of rendertime in seconds until a frame is skipped.
this.friction
The physical property of friction Defines the friction of objects.
g: function(n)
The path cost function, should return a value that represents how hard it is to reach the current node
G: 71
Basic functions for handling the gamvas environment: http://gamvas.com
The actor class is the most important class in gamvas.
A class for actor states
gamvas.AI specific defines, variables and functions
Class for animated sprites
A class to simplify A* pathfinding on a 2x2 grid with a optional height field
The node information of a gamvas.AStarGrid map
A flexible 3D node based A* pathfinding system
A base class for pathfinding nodes.
The camera class.
The basic class for inheritance
Several userconfigurable variables
A collection of static DOM helper and utility functions
Functions for event handling
A plain image with methods to move, rotate and zoom.
Keyboard utilities and defines.
Information and functions for the mouse.
A particle emitter
Physics functions
Holds information about the object related to a a physics object
Holds position and width information of a rectangle
Class for resource handling, aka loading images and other game data
Functions with info about the screen
A class for sound and music files.
Helper functions for state management
Game state class, overwrite for own states
Functions to get information about timing.
A 2D vector class
getActors: function()
returns all the actors added with gamvas.State.addActor as array, sorted by their gamvas.Actor.layer
getCanvas: function()
Get the canvas element
getCanvasDimension: function()
Get the width and height of the canvas
getCanvasPosition: function()
Get the position in DOM of the current canvas
this.getClipRect = function()
Gets the clipping rectangle of a image as gamvas.Rect
getContext2D: function()
Get the 2D context object of the canvas
getCurrentAnimation: function()
Get the current gamvas.Animation object that is playing
getCurrentState: function()
Get the current gamvas.ActorState the actor is in
getCurrentState: function()
Get the current state
getFPS: function()
Returns the current frames per second.
getGlobalTimeScale: function()
Returns the global timescale
gamvas.Resource.prototype.getImage = function(url)
Load a image from url
getLastFrameLength: function()
Returns the time elapsed since the last call to render a frame.
getMilliseconds: function()
Get the milliseconds since gamvas was started.
getParticleRate: function()
Get the current particle emission rate
getPosition: function(el)
Gets the position of a DOM element
getPosition: function(ev)
Returns the position of the mouse as gamvas.Vector2D
getSeconds: function()
Get the seconds since gamvas was started.
gamvas.Resource.prototype.getSound = function(url)
Load a sound/music file from url
getState: function(name)
Get a certain state
getValue: function(x,
y)
Get the field value of position x,y in the grid
getWorld: function()
Get the Box2D world object
getX: function(ev)
Returns the x position of the mouse over the canvas.
getY: function(ev)
Returns the y position of the mouse over the canvas.
h: function(n,
t)
The heuristic estimate
H: 72
hasFullScreen: function()
Test if real fullscreen more is supported
hasMultiTouch: function()
Test if device supports multi touch operations
this.height
The height of a single frame in pixels
this.height
The height of the rectangle
HOME: 36
I: 73
init: function()
Description
init: function()
Gets called once on state initialization.
init: function()
The init function is called only once per state to initialize it.
INSERT: 45
isActive: function()
Check if the actor is active
isFullScreen: function()
Test if we are currently running in real fullscreen mode
isPressed: function(k)
Check if a key is pressed
isPressed: function(k)
Check if a mouse button is pressed
gamvas.Sound.prototype.isReady = function()
Test if the sound is ready to play
isSet: function(v)
Tests if a variable is set
J: 74
K: 75
define for a kinematic body
Close