camPos(pos: Vec2): Vec2

parampos- The position to set the camera to.

deprecatedUse

// camera follows player
player.onUpdate(() => {
    camPos(player.pos)
})

returnsThe current camera position.

sincev2000.0

camPos(x: number, y: number): Vec2

deprecated

camPos(xy: number): Vec2

deprecated

camPos(): Vec2

deprecated