Files
tdkpin/tdkpin-rs/web/README.md
T
ddidderr a21f01c02d
Build TDK Pinball / build (macos-latest) (push) Canceled after 0s
Build TDK Pinball / build (ubuntu-latest) (push) Canceled after 0s
Build TDK Pinball / build (windows-latest) (push) Canceled after 0s
fix(web): keep game at original canvas size
The browser shell previously sized the canvas to the full viewport, causing
Macroquad to scale the 640x460 game presentation as the website changed size.
Keep the canvas at the original 640x460 CSS-pixel dimensions and center it on
a black page instead. A minimum page size and scrolling preserve access to the
fixed canvas on viewports smaller than the original presentation.

Test Plan:
- `just web-build` -- passed
- `git diff --check` -- passed
- Browser smoke test -- canvas measured 640x460 and was centered at (320,130)
  in a 1280x720 viewport; the rendered game remained at the intended fixed
  presentation size with no runtime errors
2026-08-29 14:49:37 +02:00

549 B

TDK Pinball Machine web build

Build and serve the browser version from this directory with:

just web-serve

The game is compiled for wasm32-unknown-unknown and loaded into a fixed 640x460 canvas centered on the black page by index.html. Browser settings and high scores are saved in localStorage; native builds continue to use their normal per-user save file.

The page uses Macroquad's official browser loader from the miniquad samples site. The web page must be served over HTTP rather than opened directly from a file: URL.