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.
fix(api): extend beginner trap detection and polish palette messages master
Add a Palette instanceof guard to BT.paletteSet so undefined/null inputs show a friendly canvas error instead of crashing on the next draw call. Rewrite five Palette error strings to plain language (slot-0 transparency rule, invalid size, invalid JSON shape, unknown color name). Rewrite the three Vector2i.div zero-divisor messages with the same pattern. Tests updated to cover the new guard and the rewritten message text. 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, 9:24 AM UTC) Commit 2481de63 2481de634b161caa2178bd74d137451a377291a4 Parent 2a1e283c 2a1e283c809950a7911aecca1939d53c546f77b5