position : Phaser.Point The Cameras position. This
y : number The Cameras y coordinate. This value is automatically clamped if it falls outside of the World bounds. Gets or sets
bounds : Phaser.Rectangle The Camera is bound
setPosition(x, y) A helper function to set both the X and Y properties of the camera at oncewithout having to use game.camera
resetFX() Resets any active FX, such as a fade or flash and immediately clears it.Useful to calling after a fade in order to remove
[static] FOLLOW_LOCKON : number Source code:
reset() Resets the camera back to 0,0 and un-follows any object it may have been tracking.Also immediately resets any camera effects
[static] FOLLOW_TOPDOWN : number Source code:
new Camera(game, id, x, y, width, height) A Camera is your view into the game world. It has a position and size and renders only those
width : number The Cameras width. By default this is the same as the Game size and should not be adjusted for now. Gets or sets
Page 3 of 5