setPosition(x, y)
A helper function to set both the X and Y properties of the camera at once
without having to use game.camera.x and game.camera.y.
Parameters
Name | Type | Description |
---|---|---|
x | number | X position. |
y | number | Y position. |
- Source code: core/Camera.js (Line 725)
Please login to continue.