The library
Building this Cotswolds portfolio
Why I made a walkable pixel village the front door to a static Astro portfolio, and how the site still works when someone skips the game.
Why a village, not a landing page
Most portfolios open with a hero and a grid of cards. This one opens in a small Cotswolds village. You walk into the Workshop for case studies, the Library for writing, or the Post office to get in touch.
The HTML pages still exist — they have to, for accessibility, search engines, and anyone who turns JavaScript off — but the intended path is the map. The village is navigation with atmosphere, not a game that traps the content inside a canvas. From writing, work, or contact, the studio mark opens a notes home; [V] returns to the square.
?time=HH:MM previews any hour.Stack choices
Astro builds the site as static HTML. Case studies and articles live as Markdown with validated frontmatter. There is no client router and no React shell around the portfolio; Phaser mounts only on the homepage when the village boots.
Phaser 4 runs the top-down village: tiled maps, collisions, interiors, villagers, day/night lighting from the visitor’s local time, and construction robots that patrol the church and workshop. Leaving a content page is an ordinary link back to the village, not a custom SPA history layer.
Aseprite and Tiled own the art and maps. Generators under scripts/art/ can scaffold tilesets and maps; once the .aseprite and .tmj files exist they are the source of truth. Robot and drone sprites were iterated the same way — regenerate, export, look at them in the square.
Alchemy deploys the static build to Cloudflare Workers Assets. Preview and production are separate: preview builds ask search engines to stay away, while production exposes the published pages and keeps the draft case studies out of the index.
What “game-first” actually means
The homepage is the overlay. If Phaser fails to load, a short HTML fallback lists Workshop, Library, and Post office so the site remains usable. The studio welcome is only on the content side, opened from the mark on writing, work, and contact.
At launch, Work, Writing and Contact were the village’s three destinations. They still have normal URLs, so a reader can go straight to a note or send someone a case study. The Studio page now gives someone arriving that way a little more context about who made the site.
Content and honesty
The Workshop pages don’t have to fill a grid or hit a launch date. A case study can explain the design problem while its results and any client details are still being reviewed. Writing is different: each note can go live as soon as it stands on its own. This one was the first.
Coming back to it
The Library now has engineering notes, including a week building Abacus. The map has also grown beyond the original square. Neither change makes the original test any less useful: can someone get what they came for, even if they have no interest in playing?
I’d still like to spend more time measuring the first Phaser download on slower phones. The village can be the front door without making every visitor wait at it.