A WebGPU retro game engine for TypeScript, inspired by RetroBlit. Build pixel-perfect 2D games with a clean, fantasy-console-style API.

fix(assets): validate palette effect inputs and reset idle clock master

Reset PaletteEffectManager clock when adding the first effect after idle, preventing a huge delta spike from the accumulated gap. Add input validation to BTAPI palette effect methods: finite speed and integer range for paletteCycle, finite non-negative durationMs for paletteFade, paletteFadeRange, and paletteFlash. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Vaclav Vancura <commit@vancura.dev>


+30
2 changed files