Skip to content

feat: add clickable console controls - #28

Merged
balajmarius merged 4 commits into
masterfrom
feat/game-controls
Sep 18, 2026
Merged

balajmarius merged 4 commits into
masterfrom
feat/game-controls

Conversation

@balajmarius

Copy link
Copy Markdown
Owner

The console's left, right, and Commit buttons now work alongside keyboard controls, using aligned pressed-state image overlays. Start/On turns an active game off and starts a fresh round when off or dead.

The buttons live in ui/controls.tsx, movement shares one bounded handler, and movement clears the firing animation for both keyboard and pointer input. Button assets use numbered names and eight PNGs are losslessly optimized, saving 22,355 bytes while preserving decoded pixels and color profiles.

Validation: npm run check and npm run build passed. Browser checks verified button positioning, movement, and firing. PNG dimensions, decoded RGBA pixels, and color profiles were compared before replacement. The build retains the existing large-chunk warning.

@balajmarius
balajmarius merged commit fcf27e6 into master Sep 18, 2026
2 checks passed
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.

1 participant