* move the camera upper-left position by the specified offset. * @see focusOn * @param x - horizontal offset * @param y - vertical offset * @example * // Move the camera up by four pixels * app.viewport.move(0, -4);
(x: number, y: number)
| 578 | * app.viewport.move(0, -4); |
| 579 | */ |
| 580 | move(x: number, y: number): void { |
| 581 | this.moveTo(this.pos.x + x, this.pos.y + y); |
| 582 | } |
| 583 | |
| 584 | /** |
| 585 | * move the camera upper-left position to the specified coordinates |
no test coverage detected