namespace
Camera
A world-space camera — a draw offset threaded through the render path (the same offset Screen.camera sets). Camera.set places it, Camera.follow eases it toward a target, and Camera.shake jitters it from the seeded RNG for impact and explosions. Everything is integer and deterministic — driven off the same seed and inputs, a replay reproduces the exact camera path, shake included. The camera moves everything drawn; reset it to (0, 0) to draw a fixed HUD.
Camera.set(x, y)Place the camera at a world-space offset.Camera.follow(x, y, lerp)Ease the camera toward centring a target point.Camera.shake(amount)Jitter the camera by up to +/- amount pixels (seeded RNG).Camera.zoom(scale)Scale the whole view about the screen centre by a Q16.16 factor (1.0 = none).Camera.shake_for(amount: px, frames: n)Shake for a number of frames, then stop, with no bookkeeping.