Add web host: wasm bridge, page shell, pixel GAME OVER, Playwright smoke tests

This commit is contained in:
ZacharyZhang-NY committed 2026-10-11 17:15:37 -04:00
1 parent d3b4adebb0
commit 83bc28c087
13 files changed
+923 -7

No files matched your search

+4 -1
View File
@@ -9,6 +9,9 @@ import (
"git.zacharyzhang.com/ZacharyZhang-NY/8bitMyGoUI/pixel"
)
// Dot is the gallery's DIPs per dot.
const Dot = 2
// App is the gallery that native and web share.
type App struct {
router *ui.Router
@@ -40,7 +43,7 @@ func (a *App) Go(path string) {
}
func (a *App) View(c *ui.Context) {
pixel.Use(c, pixel.Settings{Palette: pixel.Palettes[a.palette], Locale: a.locale})
pixel.Use(c, pixel.Settings{Palette: pixel.Palettes[a.palette], Dot: Dot, Locale: a.locale})
if !a.started {
a.boot(c)
return