T | |
T, gamvas.key | |
TAB, gamvas.key | |
toScreen | |
toWorld | |
type | |
U | |
U, gamvas.key | |
unmute, gamvas. | |
UP, gamvas.key | |
update, gamvas. | |
usePhysics, gamvas. | |
V | |
V, gamvas.key | |
Variables | |
velocityIterations, gamvas. | |
W | |
W, gamvas.key | |
width | |
WIN_LEFT, gamvas.key | |
WIN_RIGHT, gamvas.key | |
worldPerState, gamvas. | |
X | |
x | |
X, gamvas.key | |
Y | |
y | |
Y, gamvas.key | |
Z | |
Z, gamvas.key | |
zoom, gamvas. | |
zoomFactor, gamvas. |
T: 84
TAB: 9
Convert world coordinates to screen coordinates.
gamvas.Camera.prototype.toScreen = function( x, y )
Calculates a physics coordinate or size to the screen coordinate or size
toScreen: function( v )
Convert screen coordinates to world coordinates.
gamvas.Camera.prototype.toWorld = function( x, y )
Calculates a screen coordinate or size to a coordinate or size in the physics world
toWorld: function( v )
Allows you to set types to your physics objects to identify them.
this.type
Type object type (e.g.
this.type
U: 85
Unmute the sound
gamvas.Sound.prototype.unmute = function()
UP: 38
Update the ai.
update: function( t )
Delivers true/false if this object has physics enabled.
this.usePhysics
V: 86
Sets the Box2D velocity iteration steps
velocityIterations: 10
W: 87
The width of a single frame in pixels
this.width
The width of the rectangle
this.width
WIN_LEFT: 91
WIN_RIGHT: 92
Use one physics world per game state?
worldPerState: true
The x position of the upper left corner of the rectangle
this.x
The x direction of the vector, also used as coordinate value for some functions.
( x ) ? this.x
X: 88
The y position of the upper left corner of the rectangle
this.y
The y direction of the vector, also used as coordinate value for some functions.
( y ) ? this.y
Y: 89
Z: 90
Zoom the camera
gamvas.Camera.prototype.zoom = function( z )
The zoom factor of the camera.
this.zoomFactor