Skip to content

feat(render): add level indicator HUD - #157

Merged
sv-tmueller merged 3 commits into
mainfrom
feat/156-level-indicator
Aug 16, 2026
Merged

feat(render): add level indicator HUD#157
sv-tmueller merged 3 commits into
mainfrom
feat/156-level-indicator

Conversation

@sv-tmueller

Copy link
Copy Markdown
Owner

Closes #156

…ural addition of font:string and fillText(string,x,y):void to\nBlitContext interface, maintaining CanvasRenderingContext2D compat.\nUpdates all three mock contexts (batcher, renderer, integration tests)\nwith matching font/fillText members.\n\nRefs #156
Add DrawText type and 'hud' layer to the render model. The HUD layer
draws 'Level N' (1-based) in the top-left corner of the 320x180
backbuffer using 8px monospace font and the 'bone' palette color.

Bypasses computeHud (gaslit) which deliberately lies ~12.5% of the
time — the level indicator must always show the true level number.

Threaded levelIndex through RenderContext, renderFrame, and renderGame.
Updated all render test files with new signatures and 5 new HUD tests.

Closes #156
@vercel

vercel Bot commented Aug 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pitfall Ready Ready Preview Aug 16, 2026 8:56pm

The DrawText elements were added to the render model and the BlitContext
interface gained font/fillText, but flushModel never actually drew them.
Added a text-flushing loop after the sprite loop in each layer.
@sv-tmueller
sv-tmueller merged commit ded4370 into main Aug 16, 2026
6 checks passed
@sv-tmueller
sv-tmueller deleted the feat/156-level-indicator branch August 16, 2026 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(render): add level indicator HUD

1 participant