Shell: canvas scaling #5

Open
opened 2026-10-22 00:45:40 -04:00 by cheech · 0 comments
Owner

Part of Epic: shared game shell.

Fixed logical resolution per game (manifest declares e.g. 480x640 portrait or 640x480 4:3), scaled to fit the play area with integer scaling where possible, letterboxed, crisp pixels (image-rendering: pixelated), and correct devicePixelRatio handling.

Acceptance criteria

  • Logical resolution comes from the game manifest
  • Resizes on window resize and orientation change without stretching
  • Pointer/touch coordinates are mapped back to logical coords
  • Crisp on HiDPI screens
Part of **Epic: shared game shell**. Fixed logical resolution per game (manifest declares e.g. 480x640 portrait or 640x480 4:3), scaled to fit the play area with integer scaling where possible, letterboxed, crisp pixels (`image-rendering: pixelated`), and correct devicePixelRatio handling. ## Acceptance criteria - [ ] Logical resolution comes from the game manifest - [ ] Resizes on window resize and orientation change without stretching - [ ] Pointer/touch coordinates are mapped back to logical coords - [ ] Crisp on HiDPI screens
cheech added this to the M0 Foundation milestone 2026-10-22 00:45:40 -04:00
cheech added this to the Roadmap project 2026-10-22 20:53:09 -04:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
NetDagger/arcade#5
No description provided.