(camera)
| 7 | */ |
| 8 | export class CameraSystem { |
| 9 | constructor (camera) { |
| 10 | this.camera = camera |
| 11 | const { pos: { x, y }, zoom } = CAMERA_DEFAULT() |
| 12 | this.lastCameraMove = { pos: { x, y }, zoom } |
| 13 | this.camera.zoomTo({ x, y }, zoom, 0) |
| 14 | } |
| 15 | |
| 16 | zoomToCommand ({ x, y }, zoom) { |
| 17 | const lastPosition = this.lastCameraMove |
nothing calls this directly
no test coverage detected