carlok — zsh — 88×30

cat _posts/2026-11-15-sunslide-a-pac-man-bubble-chase-on-a-15-puzzle-of-sliding-islands-wrapped-around-a-tiny-planet.md

sunslide: a Pac-Man bubble chase on a 15-puzzle of sliding islands, wrapped around a tiny planet

sunslide went public on 14 November, Apache-2.0 and playable at carlok.github.io/sunslide: you are Pip the bubble frog on a small planet whose surface is a 15-puzzle of meadow islands — one empty meadow, islands that slide when sunlit, and a planet you can pull back to a map view to pick a waypoint. Movement is swipe, arrows/WASD or a gamepad stick, sliding is tap, click or LB/RB plus A, and phones vibrate while controllers rumble on the same events (README).

The day it landed was mostly spent making it hold a frame rate on a real browser. Island tiles are batched through BatchedMesh with a floor atlas instead of drawn one by one, shadows are tiered maps with manual updates, the render loop stops when the tab is hidden or the player is idle, and the device-pixel ratio adapts — with a ?debug overlay that prints what the loop is doing and a step that is skipped during the smoke tests so CI stays comparable (522b65f, 20c06e3, c4628a6, a2aba7a, #31–#34).

The game itself grew in the same pass: a skippable first-run tutorial, a hamburger panel for sound, quality, motion and palette, 44px touch targets with haptics, a chase camera brought closer with less top-down pitch, a fullscreen stage with the HUD as an overlay, and a sector-clear screen with the run’s best. Greening is the through-line — bubbles pop into green cells, a HUD tracks the planet turning green, the ambient bed brightens with it, and optional par moves give each sector stars (e79d15a, 59896d1, 330154b, ff4d30e, dbae668, 86464a0, f6ae763). It ships with the checks the other browser projects carry: Vite modules, Vitest coverage floors on src/logic, a Playwright smoke test against the production build, Lighthouse CI, and a Pages deploy on main.