MCPcopy Create free account
hub / github.com/codecombat/codecombat / constructor

Method constructor

ozaria/engine/cinematic/CameraSystem.js:9–14  ·  view source on GitHub ↗
(camera)

Source from the content-addressed store, hash-verified

7 */
8export 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

Callers

nothing calls this directly

Calls 1

CAMERA_DEFAULTFunction · 0.90

Tested by

no test coverage detected