P | |
P, gamvas.key | |
PAGE_DOWN, gamvas.key | |
PAGE_UP, gamvas.key | |
PAUSE, gamvas.key | |
PERIOD, gamvas.key | |
pixelsPerMeter, gamvas. | |
play, gamvas. | |
position | |
positionIterations, gamvas. | |
postDraw | |
preDraw | |
preventKeyEvents, gamvas. | |
preventMouseEvents, gamvas. | |
Q | |
Q, gamvas.key | |
quickDistance, gamvas. | |
quickLength, gamvas. | |
R | |
R, gamvas.key | |
registerInputEvents, gamvas. | |
removeActor, gamvas. | |
reset, gamvas. | |
resetForces, gamvas. | |
resetWorld, gamvas. | |
resitution, gamvas. | |
resource, gamvas. | |
resume, gamvas. | |
RETURN, gamvas.key | |
reverseLayerOrder, gamvas. | |
RIGHT | |
rotate | |
rotation |
P: 80
PAGE_DOWN: 34
PAGE_UP: 33
PAUSE: 19
PERIOD: 190
Sets the pixels per meter ratio.
pixelsPerMeter: 64
Play the sound once, restarts the sound automatically
gamvas.Sound.prototype.play = function()
A gamvas.Vector2D object with the position information
this.position
The current position as gamvas.Vector2D
this.position
A gamvas.Vector2D holding the position of the node
create: function( x, y, id ) { this.connected = new Array(); this.position = new gamvas.Vector2D(x, y); (id) ? this.id = id : this.id = this.position.x+'_'+this.position.y; }
A gamvas.Vector2D object that holds the position of the camera.
this.position
Sets the Box2D position iteration steps
positionIterations: 8
Gets called after camera handling.
postDraw: function( t )
Gets called after camera handling.
postDraw: function( t )
This function is called after camera is applied.
postDraw: function( t )
Gets called after screen clear and before camera handling.
preDraw: function( t )
Gets called after screen clear and before camera handling.
preDraw: function( t )
This function is called before camera is applied.
preDraw: function( t )
Capture the whole documents key events?
preventKeyEvents: false
Capture the whole documents mouse events?
preventMouseEvents: false
Q: 81
Returns a comparable distance between the current vector and vector v
gamvas.Vector2D.prototype.quickDistance = function( v )
Returns the non sqrt() length of the vector, which is faster to calculate as it’s real length.
gamvas.Vector2D.prototype.quickLength = function()
R: 82
Send keyboard/mouse events to gamvas.Actor onKeyDown and similar functions
registerInputEvents: function( act )
Add a gamvas.Actor to the state.
removeActor: function( act )
Reset the particle emitter
reset: function( kill )
Resets all physical forces on the actor
resetForces: function( x, y, r )
Resets the physics world
resetWorld: function( gravx, gravy, slp, listener )
a gamvas.Resource instance, to allow easy file loading
this.resource
Resumes a stopped sound, without rewinding it
gamvas.Sound.prototype.resume = function()
RETURN: 13
Reverse layer sorting
reverseLayerOrder: false
RIGHT: 39
Defines the right mouse button
RIGHT: 2
Rotate the actor
rotate: function( r )
Rotate the animation
rotate: function( r )
Rotate the camera for r radians
gamvas.Camera.prototype.rotate = function( r )
Rotate the image
this.rotate = function( r )
Returns a new vector with the current vector rotated a certain angle.
gamvas.Vector2D.prototype.rotate = function( r )
The rotation of the actor
this.rotation
The rotation in radians
this.rotation
The rotation of the camera in radians.
this.rotation