Ember Drift: A Lava-Tube Maze Run Against the Heat
- Lab Skill
- v0.1.2
- Game creation
Roll a glowing ember through a seeded basalt lava-tube maze, in one offline HTML file: gather every shard to charge the exit vent, then reach it before the heat timer runs out. Finishing grades the run in one to three stars and opens a bigger maze; running out cools the ember and ends the run. A corner minimap shows the maze, the shards and the vent; keyboard and touch both play.
例
Ember Drift maze game
この例はサンドボックス化されたフレームで実行され、このページにはアクセスできません。
オンラインで実行
SandBase sandbox で実行し、結果を Lab で確認できます。
Lab で開く ↗得られるもの
Bring the theme, the rolling hero and the maze look, and optionally maze size, shard count, timer, physics feel and HUD text. The Skill returns a downloadable Skill (the maze-game project, a customize guide, headless verification) and one playable example run.
仕組み
- 01
Start a maze project
Ember Drift starts with node scripts/new-project.mjs --out my-maze, then npm ci, which fetches pinned Vite, three.js and playwright-core. A prompt such as "Use ember-drift to make a maze game where a firefly rolls through a cave to a lantern" sets the theme. references/customize.md maps palette, maze, shards and vent, timer and stars, UI copy, HUD, camera and physics changes.
- 02
Roll the ember
Press Enter and the title card fades into a cooling lava tube under bloom. You roll a spark with arrows or WASD, or a thumb-drag on a phone, through a maze carved by a recursive backtracker from the level seed. Level 1 has 3 shards and each level adds 2 shards and 2 cells per side. The vent lights blue only when every shard is gathered.
- 03
Build and verify the run
npm run build:single writes dist-single/index.html, about 0.5 MiB with everything inlined, for any WebGL browser. npm run shoot plays it in local Chrome or SwiftShader through a start, a roll, shards, the dark and charged vent, a cleared level, the star card, a timeout, the minimap, Chinese text and a phone run. Read shots/report.json until every check passes.
FAQ
Can you lose in Ember Drift?
Yes. Ember Drift ends the run when the heat timer ring empties, showing a cooled-out fail card. The first level gives 70 seconds and each level adds 12 seconds, while the results card grades a cleared level from one to three stars by the time left.
Does Ember Drift use device tilt?
No. Ember Drift rolls the ember by keyboard impulse or a touch drag, not by tilting the device. Its physics are a small circle-versus-box solver on a grid of axis-aligned wall cells, not a general rigid-body engine, so arbitrary convex geometry is out of scope.
Is Ember Drift free to run?
Ember Drift needs no API key and calls no model; the shipped HTML makes no network requests at all. The only download happens when npm ci fetches packages from the public npm registry. Playing, rebuilding or verifying the game therefore adds nothing to a SandBase bill.
What languages does Ember Drift support?
Ember Drift ships English and Simplified Chinese, switched with ?lang=zh-CN. The system font stack covers both, so no font is bundled. The headless check includes a run with Chinese text alongside the English desktop and phone runs, and the game follows the page language when embedded.
Why does Ember Drift skip the image-detail check?
Ember Drift sets minDetail to 0 in verify.json because a dark tube legitimately scores flat on the blank-frame sampler. Verification leans on game-state assertions and a finite-view check instead, and it counts wall cells on screen to confirm the camera keeps the corridors in frame. Version 0.1.2 fixed the poster sampler to read whole pixel rows.
What can go wrong when editing Ember Drift?
Ember Drift spawns shards on floor cells, and a config that loosens that spawn filter can drop a shard under the ball or inside a wall. Software rendering works but runs slower. The root index.html only runs through npm run dev, so deliver dist-single/index.html, which opens with a double-click.
その他の Skills
すべての Game creation Skills →
Seagull Swoop
Build a 3D flight-and-delivery game with light fries, heavy fish, crosswinds and optional ring routes. The gull must bring lunch home; cargo weight changes which openings it can safely reach.

Wedding Cake Wobble
Build a 3D fragile-cargo delivery game around a wobbling wedding cake. Brake before turns, avoid crossing guests and steer around tables. Lost tiers change the score, while a partial delivery can still succeed.

Hermit Tide
Build a 3D route-and-timing game where a hermit crab changes shells to cross a tidal shore. Narrow gaps favour the cap, stronger shells resist waves, and dry stones provide shelter and checkpoints.

Clover Circuit: Estate Cut
Drive a coral ride-on mower through a fenced estate garden. Steering, braking and the moving blade cut actual grass tufts; Overview reveals the genuine trail. Edit three gardens and three scene palettes offline. Coverage counts trimmed tuft centers rather than continuous ground area.

Glide Gates: Lagoon Run
Flap a golden bird through emerald pipe pairs above a turquoise lagoon. Actual fixed-step gravity, swept circle contacts and full-gate scoring power both manual flight and clearly labeled practice. Edit three courses and three scene palettes offline.

3D Interactive Garden Islands
Walk a curved garden, harvest fruit, share gifts, catch butterflies, fish, grow flowers and craft furniture. Four lighting states and one offline HTML with bilingual keyboard and touch controls.

