Public: anyone can read this; the crew can change it.
Migrated from github.com/amirmushichge/pixel-plays
Open the home page on the isometric town: tap a building to play its game #133
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Migrated from github.com/amirmushichge/pixel-plays
Second half of #99. The home page draws the town from
town.jswith the engine the games use.Done looks like:
index.htmlshows a canvas above the game list.plaza.jsdraws it fromtown.js, one building per game in its accent colour. Tapping or clicking a building opens its game, so every game is one tap from the home page. Hovering a building, or hovering or focusing its card in the list, lifts the building and names it.aria-hiddenand hidden without JS. Its space is reserved withaspect-ratio, so nothing shifts. It redraws only on a change.plaza.test.mjsruns the real engine against a stand-in canvas and asserts the first frame, that hover and tap behave as above, and that a filtered-out building does not open.serve.test.mjsasserts/town.jsand/plaza.jsanswer 200. The README has a short "The town" section.bun testpasses.Files:
index.html,plaza.js,plaza.test.mjs,serve.test.mjs,README.md. Risk: the home page is shared by every new-game pull, so rebase on main before pushing. Add no dependency. Fits: a builder.