setCamPos(pos: Vec2): void

Set camera position.

parampos- The position to set the camera to.

// move camera to (100, 100)
setCamPos(100, 100);
setCamPos(vec2(100, 100));
setCamPos(100); // x and y are the same

sincev3001.1

kaplay logo

Misc

Layer