Something went wrong. Try again.
A WebGPU retro game engine for TypeScript, inspired by RetroBlit. Build pixel-perfect 2D games with a clean, fantasy-console-style API.
Something went wrong. Try again.
feat(camera): add BT.cameraClamp and extract clampCameraToWorld utility master
Introduce `clampCameraToWorld(camera, worldSize, viewSize)` in a new `CameraUtils` module and expose it on the BT namespace as `BT.cameraClamp`. The `viewSize` argument is optional and defaults to `BT.displaySize()`. Also export `IndexedSpriteLoadResult` from SpriteSheet as a named type so demos can annotate the result of `SpriteSheet.loadIndexed` without importing from internal paths. Signed-off-by: Vaclav Vancura <commit@vancura.dev> Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Vaclav Vancura <commit@vancura.dev>
Author Vaclav Vancura Co-author Claude Sonnet 4.6 Date (May 8, 2026, 7:07 AM UTC) Commit 90a9aa61 90a9aa610af82e4a891434ddcd744c8d70fd42fc Parent ce15aed6 ce15aed69bd28362962406df9d11cd1de411af0a