World

Class: Phaser.World

Constructor

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.

Parameters
Name Type Description
game Phaser.Game

Reference to the current game instance.

登录查看完整内容