World#_definedSize

[readonly] _definedSize : boolean True if the World has been given a specifically defined size (i.e. from a Tilemap or direct in code) or false if it's just matched to the Game dimensions. Source code: core/World.js (Line 41)

World#z

[readonly] z : integer The z-depth value of this object within its parent container/Group - the World is a Group as well.This value must be unique for each child in a Group. Inherited From Phaser.Group#z Source code: core/Group.js (Line 57)

World#y

y : number The y coordinate of the group container. You can adjust the group container itself by modifying its coordinates.This will have no impact on the x/y coordinates of its children, but it will update their worldTransform and on-screen position. Inherited From Phaser.Group#y Source code: core/Group.js (Line 2978)

World#xy()

xy(index, x, y) Positions the child found at the given index within this group to the given x and y coordinates. Parameters Name Type Description index integer The index of the child in the group to set the position of. x number The new x position of the child. y number The new y position of the child. Inherited From Phaser.Group#xy Source code: core/Group.js (Line 993)

World#x

x : number The x coordinate of the group container. You can adjust the group container itself by modifying its coordinates.This will have no impact on the x/y coordinates of its children, but it will update their worldTransform and on-screen position. Inherited From Phaser.Group#x Source code: core/Group.js (Line 2969)

World#wrap()

wrap(sprite, padding, useBounds, horizontal, vertical) This will take the given game object and check if its x/y coordinates fall outside of the world bounds.If they do it will reposition the object to the opposite side of the world, creating a wrap-around effect.If sprite has a P2 body then the body (sprite.body) should be passed as first parameter to the function. Please understand there are limitations to this method. For example if you have scaled the Worldthen objects won't always be re-

World#World

new World(game) "This world is but a canvas to our imagination." - Henry David Thoreau A game has only one world. The world is an abstract place in which all game objects live. It is not boundby stage limits and can be any size. You look into the world via cameras. All game objects live withinthe world at world-based coordinates. By default a world is created the same size as your Stage. Parameters Name Type Description game Phaser.Game Reference to the current game instance. Source code

World#width

width : number Gets or sets the current width of the game world. The world can never be smaller than the game (canvas) dimensions. Source code: core/World.js (Line 243)

World#visible

visible : boolean The visible state of the group. Non-visible Groups and all of their children are not rendered. Inherited From Phaser.Group#visible Source code: core/Group.js (Line 2996)

World#total

[readonly] total : integer Total number of existing children in the group. Inherited From Phaser.Group#total Source code: core/Group.js (Line 2648)