Commit Graph

6 Commits

Author SHA1 Message Date
cf67af7131 perf: pause tavern canvas when off-screen (0.60.0)
- the 60fps canvas render loop ran continuously even when scrolled out of
  view (the home page is long now — wasted CPU/battery while reading below)
- IntersectionObserver pauses the rAF loop at 0% visibility and resumes it
  when the tavern scrolls back in; cleaned up on unmount
- verified live: ~60 rAF/s on-screen → 0 off-screen → 60 on resume, 0 errors
2026-06-10 08:26:48 +08:00
3ddbc76dfc a11y: keyboard focus indicators + canvas label (0.59.0)
- the site had focus styles only on inputs, so keyboard navigation was
  invisible across every button, link, nav item, card and CTA
- add a global :focus-visible ring (cyan, gold for primary CTAs) — shows for
  keyboard users only, follows each element's radius
- label the decorative tavern canvas (role=img + aria-label); its overlay
  hotspots remain separately focusable/labeled
- verified live: Tab focuses a nav button with a 2px cyan ring, matches
  :focus-visible, canvas announced as 'Animated tavern scene'
2026-06-10 08:21:16 +08:00
0c8db141d1 tavern screen shows live platform stats (0.53.0)
- the in-game cyan screen no longer shows a fake chart; it now cycles the
  real CLASSES / ONLINE / SESSIONS counts (big number + label) over a dim
  sparkline, with a cross-fade between metrics
- stats flow from Home into TavernGame via a ref the render loop reads, so
  the canvas animation stays running while data updates
- ties the brand centerpiece to real product data — the tavern's TV shows
  the live business
- verified live: screen renders the live class count legibly
2026-06-10 07:46:20 +08:00
e711a7c904 talkable tavern NPCs (0.38.0): Pokémon-style speech bubbles
- hover a character (barkeep / two patrons) -> parchment speech bubble with flavor
- clicking routes to Browse / My Booth / Mansion — adds life + feature discovery
- verified bubble renders on hover
2026-06-10 05:56:15 +08:00
ae4455ea34 tavern: high-res 32px LPC art + animated characters; PM admin-only; hover fix
- TavernGame rebuilt with LPC Base Assets (CC-BY-SA): 32px detailed tiles (brick walls,
  wood floor, red rug, barrels, victorian furniture, curtains) + animated 64px characters
  (princess dancer spotlit, armored bartender + patrons). Higher-res, less pixelated.
- PM nav link + pm.amerc.ai gated to admins only (Docs gated to logged-in)
- stronger button hover visibility; Georgia fonts; CC-BY-SA attribution in repo + public
2026-06-10 04:34:27 +08:00
4d82fc07a4 tavern: real 2D-RPG game scene from CC0 game tiles (Kenney Tiny Dungeon)
- TavernGame renders an actual tile-based RPG tavern: brick walls, floor,
  bar(吧台)+bartender(酒保)+bottles, tables(圆桌)+patrons, rug, dancer(舞女, spotlit+sway),
  barrels(酒桶), and the cyan amerc screen(屏幕) — animated fire/screen/dust
- tiles downloaded from kenney.nl (CC0), bundled as public/scene2d/dungeon.png
- credit added to README
2026-06-10 01:57:25 +08:00