add ZoomTestScene with Phaser default zoom for analysis

Separate test environment at /test.html (own Vite entry, own Phaser
instance). ZoomTestScene renders a 50×50 tile grid with crosshair
markers and a live HUD overlay showing zoom, scroll, viewport in px
and tiles, mouse world/screen/tile coords, and renderer info.
Zoom uses plain cam.setZoom() — no mouse tracking — to observe
Phaser's default center-anchor behavior.
This commit is contained in:
2026-03-21 11:16:39 +00:00
parent 34220818b0
commit 007d5b3fee
4 changed files with 285 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
import { defineConfig } from 'vite'
import { resolve } from 'path'
export default defineConfig({
server: {
@@ -7,6 +8,12 @@ export default defineConfig({
},
build: {
outDir: 'dist',
assetsInlineLimit: 0
}
assetsInlineLimit: 0,
rollupOptions: {
input: {
main: resolve(__dirname, 'index.html'),
test: resolve(__dirname, 'test.html'),
},
},
},
})