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 bound
by stage limits and can be any size. You look into the world via cameras. All game objects live within
the world at world-based coordinates. By default a world is created the same size as your Stage.

Name Type Description
game Phaser.Game

Reference to the current game instance.

Source code: core/World.js (Line 19)
2017-02-14 11:21:59
Leave a Comment

Please login to continue.