Marble Drift: A 3D Tilt Marble Maze
- Lab 스킬
- v0.1.1
- Game creation
Tilt a wooden maze to roll a marble to the goal ring, in one offline HTML file: ten hand-authored boards from an open 5×5 to an 11×11 with six holes, a falling penalty, an endless mode with seed-named mazes, plus gyro, drag and keyboard tilt on phone and desktop. The board, marble and sounds are all generated in code.
예시
Marble Drift tilt maze
이 예시는 이 페이지에 접근할 수 없는 샌드박스 프레임에서 실행됩니다.
온라인에서 실행
SandBase sandbox에서 실행하고 결과를 Lab에서 확인하세요.
Lab에서 열기 ↗얻을 수 있는 것
Bring the maze boards and their holes, and optionally the look, ball and feel. The Skill returns a downloadable Skill (the reference maze project, a customize guide, a route solver, headless verification) and one playable example board.
작동 방식
- 01
Create and customize the project
node scripts/new-project.mjs --out <dir> copies the working game, with Node 22.4 or later. Read references/customize.md first: it maps requests such as colours and wood, the marble and rings, lighting, levels, holes, physics feel, camera, text, controls and sound to the files and symbols to change. The rules are plain modules in src/game and the numbers in src/config.js.
- 02
Build one file
npm ci and npm run build:single write dist-single/index.html, one file under 8 MiB built with three.js and a fixed-step marble solver. It may not use fetch, storage, workers, alert, confirm or external URLs, and anything you add is bundled and listed in CREDITS.json. After any level or physics change, run node scripts/find-route.mjs --check so every level still reaches its goal.
- 03
Verify every check
npm run shoot writes shots/report.json and screenshots, and every check must pass; the published ten-board build passed them all. Tilt the board with the arrow keys or WASD and jump with Space, or on a phone drag to tilt, tap to jump and optionally use the gyroscope. A hole costs five seconds and returns the marble to the start.
FAQ
How do you play Marble Drift?
In Marble Drift you tilt a wooden maze board so a steel marble rolls past holes to the green goal ring. Falling in costs five seconds and returns the marble to the start, a jump hops it over a hole, and the timer starts with your first input. Ten designed levels unlock in order, plus an Endless mode with a hex seed.
Does Marble Drift call a model or need a key?
No. Marble Drift is three.js and a fixed-step solver bundled into one sandboxed file, with wood grain drawn on a canvas and synthesised sound, so it has no asset files, makes no network calls and needs no API key. Your agent edits the project locally with the customize guide, a route solver and the verification.
Can I add my own boards to Marble Drift?
Yes. In Marble Drift add an entry to LEVELS, find a seed and route with scripts/find-route.mjs --level, and the grid and unlocks follow. Each level is a seed for buildMaze, so changing the maze generator changes every maze; find new seeds after editing it, then re-run the route check.
Do Marble Drift best times survive a reload?
No. Marble Drift keeps the best time per level in memory for the session only, because the sandbox has no storage. In your own hosting you can swap src/runtime/store.js for real storage. There is no multiplayer, and the interface is in English only.
Does Marble Drift work on phones?
Yes. In Marble Drift you drag the board to tilt it and tap to jump, or turn on the gyroscope with the Tilt button and shake to jump, with an iOS permission prompt. Headless Chrome cannot test the gyroscope, so verification feeds scripted readings, and a real phone is the only proof of how it feels.
What does the Marble Drift physics model?
Marble Drift's physics is a game model: a sphere against boxes and a floor with square openings, stepped at a fixed rate by the bundled solver. Holes are square and walls are axis-aligned, so round obstacles or curved walls need new collision code. Without a GPU, the shoot check falls back to SwiftShader and runs slower.
더 많은 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.

