Camera
Class: Phaser.Camera
Constructor
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 objects within its field of view.
The game automatically creates a single Stage sized camera on boot. Move the camera around the world with Phaser.Camera.x/y
Parameters
Name | Type | Description |
---|---|---|
game | Phaser.Game | Game reference to the currently running game. |
id | number | 登录查看完整内容
|