A pixel art take on the Chrome offline dino game, recreating the magic carpet prom entrance at Stanbrook Abbey, Malvern (June 2024). The previous page at this path (“Think Different”) now lives at /oldquote2.
quote/
├── index.html # the whole game: canvas, sprites, scenery, sound, input
├── favicon.png # 32x32 pixel art: the carpet flying under a crescent moon
├── apple-touch-icon.png # 180x180 home screen icon, the same art full bleed
└── og-card.png # 1200x630 link preview card (WhatsApp, iMessage, Slack, X)
Apart from these images, nothing is loaded from outside the page. Every sprite, the scenery and the 3x5 pixel font are drawn on canvas at load time.
A run starts at the Stanbrook Abbey gate sign. The abbey starts small on the right of the horizon and grows as you travel. After about a minute (score 800) you reach the herringbone brick forecourt, the crowd goes wild, confetti falls, and the run carries on in endless mode.
Obstacles come in kinds. The next one never repeats the last kind or any of the last three obstacles. The gap to the next obstacle always leaves time to land and react: at least 0.95 seconds of travel plus 30px, plus a random extra that shrinks slowly over a long run.
| Kind | Obstacles |
|---|---|
| People | classmates from the photos: beige check, grey check with teal tie, propeller cap, maroon suit with open shirt, tuxedo with bow tie, blue check, blue suit with purple tie; two lads together (endless only); a parent crouching with a camera |
| Kit | red rope, camera tripod, crowd barrier, DJ speaker |
| Food and drink | three tier prom cake, open pizza box, stack of bagels, drinks table with flutes |
| Sheep | Jacob sheep (two patterns), Hebridean sheep |
| Magic and style | genie lamp, stilettos |
| Car | the white car (endless only) |
| Flying | filming drone, propeller cap, balloons, disco ball, pizza slice |
Flyers come at three heights: low (jump), middle (duck) and high (stay put). Every obstacle has a dark outline. Flyers also have a pale halo and a shadow on the drive. Obstacles and the rider are drawn after the dusk and night tint, so they stay easy to read in the dark.
The real physics and hit boxes were simulated for every obstacle at every speed where it can appear, trying a jump at every distance. The narrowest timing window is 172ms (the red rope at approach speed). Most windows are 200 to 400ms, and back-to-back pairs (endless only, above 210 px/s) have at least 210ms. Middle flyers always clear by ducking, and high flyers always clear by staying put.
Hundreds of people line both sides of the drive for the last 15 seconds or so before the abbey and just past it, as on the night. makeFolk(seed, back) draws each person from a seed: height (including kids), build, skin tone, hair colour and style (short, bob, long, bun, bald, cap), outfit (dress with or without a pattern, suit and tie, casual) and pose (arms down, filming on a phone, or cheering). The pools hold 160 people who face the drive and 80 seen from behind. Some guests wear colour block cardigans. The classmates cheering at the entrance include the girls in their gowns.
buildAbbey(scale) draws the abbey from rectangles at any scale: the stone and glass extension with parasols, the brick block and chimney, the long slate-roofed range, the chapel, the striped tower with clock, rose window and turret spire, the front wing, the white blossom trees, the triple lamp post and the party marquee. The tower clock’s hands are drawn live. Each size has a matching layer of lit windows for night.Open Graph and Twitter card tags in the page head point at og-card.png, so sharing the link shows a large preview: the title in the game’s pixel font, Josh mid fist-pump on the carpet, the abbey and the crowd. The card is a frame rendered from the game itself, using the test hook’s hideHud, pauseRender and overlay. Apps cache previews, so a link shared before an update can keep showing the old card for a while.
localStorage)carpet.hi (high score), carpet.mute.
window.__carpet exposes the state plus start, freeze, setDist, add, clear, step, pose, hideHud, pauseRender and overlay, so automated screenshots and bot runs can set up exact scenes.