camPos(pos: Vec2): Vec2

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

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

kaplay logo

Misc