惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

量子位
D
DataBreaches.Net
Microsoft Security Blog
Microsoft Security Blog
V
Visual Studio Blog
GbyAI
GbyAI
美团技术团队
云风的 BLOG
云风的 BLOG
大猫的无限游戏
大猫的无限游戏
小众软件
小众软件
博客园 - 叶小钗
Engineering at Meta
Engineering at Meta
博客园 - 三生石上(FineUI控件)
N
Netflix TechBlog - Medium
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
G
Google Developers Blog
博客园 - 【当耐特】
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
宝玉的分享
宝玉的分享
阮一峰的网络日志
阮一峰的网络日志
T
The Blog of Author Tim Ferriss
Y
Y Combinator Blog
U
Unit 42
P
Proofpoint News Feed
V
V2EX

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Morphogenesis - A Solstice Parade
Kamran Shahzad · 2026-06-21 · via DEV Community

Kamran Shahzad

June Solstice Game Jam Submission

Morphogenesis — A Solstice Parade

Submitted for the June Solstice Game Jam


What I Built

A browser game about sorting a parade before the longest day runs out.

You drag marchers — cyclists, pole-puppets, sun-floats — into their correct lanes. Right lane: Joy goes up, your Flow multiplier grows. Wrong lane: Chaos ticks up. Hit 100 Chaos and the parade collapses. Four acts, each faster than the last. Reach the bonfire.

The thing that makes it weird (in a good way): every cyclist's costume is a live Turing reaction–diffusion pattern — the Gray–Scott equations running frame-by-frame in the browser. Not a texture. An actual simulation, from the same 1952 paper Turing published the year he was prosecuted. The spots and stripes you see are the same mathematics behind leopard spots and coral growth.

The Fremont Solstice Parade is a celebration of showing up exactly as you are. Turing's equations are literally the science of how living things take their shapes. Putting those two things together for a solstice jam felt obvious once I saw it.

🎮 Play → morphogenesis.vercel.app


Video Demo


Code

Morphogenesis — A Solstice Parade

A small browser game built for a Solstice Game Jam, themed on the Fremont Solstice Parade and dedicated to Alan Turing.

Sort marchers — cyclists, pole-puppets, and sun-floats — into their matching lanes and carry the parade to the bonfire before the longest day burns out. Every cyclist wears a live Gray–Scott reaction–diffusion pattern computed in real time from Turing's 1952 paper The Chemical Basis of Morphogenesis.

Play

  • Drag each marcher into their matching lane: bikes → bike lane, puppets → promenade, floats → avenue.
  • Right lane = Joy, score, and a growing Flow multiplier. Wrong lane = Chaos, and it breaks your flow.
  • A flowing, joyful parade literally scores more (radiance). If Chaos hits 100, the parade collapses.
  • Survive four escalating acts — Gathering → Procession → Golden Hour → Sundown — and reach the bonfire.

Run it

npm install
npm run


How I Built It

The engine and the UI are kept completely separate. The engine (src/engine/ParadeGame.js) is plain JavaScript — no framework, just a requestAnimationFrame loop, typed arrays for the simulation, and Web Audio for sound. React handles every overlay: the HUD, act banners, menus. It never touches the canvas. App.jsx is just the glue between the two.

The reaction–diffusion part was the most fun to figure out. Two Float32Array buffers, ping-ponging each frame, running the Laplacian as a 2D convolution and mapping V-concentration to a color gradient. I tune F and k slightly per marcher type so each lane has its own visual fingerprint — same code, different parameters, wildly different patterns. Runs at 60fps for ~15 simultaneous marchers without breaking a sweat.

Scoring is built around the Flow multiplier. Consecutive correct placements grow it up to 4×; one wrong placement resets it. So as the acts speed up, you're making real trade-offs — let a tricky marcher scroll off (small Chaos hit) rather than risk misplacing it and losing a 4× streak.

Audio is all Web Audio API synthesis — no files. Correct placements get a pentatonic chime, wrong ones get a low thud. The background drone shifts pitch and filter cutoff with the Joy/Chaos ratio. A joyful parade sounds noticeably healthier than a chaotic one.

Vite + Vercel for the build. Fully static, no backend.


Prize Category

Best Ode to Alan Turing

The game is dedicated to him. The patterns on every marcher's costume are a direct implementation of his 1952 morphogenesis model — published the same year the British government prosecuted him for being gay. He died two years later.

The dedication screen inside the game reads:

For Alan Turing (1912–1954), prosecuted in 1952 for being different. The patterns his equations describe are everywhere in living things — a celebration of the freedom to be seen exactly as you are.

Every pattern in the game is his math.


Vanilla JS · React · Vite · Web Audio API · Vercel