Skip to content

feat: make the game case responsive - #26

Merged
balajmarius merged 1 commit into
masterfrom
responsive
Sep 18, 2026
Merged

balajmarius merged 1 commit into
masterfrom
responsive

Conversation

@balajmarius

Copy link
Copy Markdown
Owner

The fixed-width case overflowed narrow screens. Scale the complete case to its container width, capped at its original 664 × 940 size, so the artwork, canvas, and Start/On button stay aligned.

An aspect-ratio wrapper reserves the displayed height. The bottom observer and fade stay outside the scaled element, and the fade remains anchored to the viewport. Pixi retains its 400 × 300 internal resolution.

Validation: npm run check and npm run build pass. Browser checks at 320px, 390px, 768px, and 1440px confirmed proportional sizing without horizontal page overflow. Clicking the scaled Start/On button starts the game; no browser errors were reported.

Uses CSS container units and typed division in calc() for scaling. The existing Vite large-chunk warning remains.

@balajmarius
balajmarius merged commit e0fca4a into master Sep 18, 2026
2 checks passed
@balajmarius
balajmarius deleted the responsive branch September 18, 2026 08:31
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