Sand AISand AI MAGI-2MAGI-2가 이제 SandBase에서 제공됩니다: 네이티브 오디오가 포함된 1080p 동영상지금 사용해 보기

Midnight Potions: A 3D Timed Potion-Shop Game from a Brief

Describe a shopkeeper, a shop and the customers, and your Agent builds a 3D timed recipe game in one offline HTML file. In the main example, Mabel the witch has 115 seconds to brew five cures: add the ingredients on each order card, heat the cauldron into the marked range, stir the right number of times and serve. The rigged witch, the cauldron, the ingredient, the bottle, the music and the sound effects are generated through SandBase; the shop, the recipes and the timing are code.

예시 · 2

Midnight Potions playable shift
새 탭에서 열기

이 페이지에 접근할 수 없는 샌드박스 프레임에서 실행됩니다.

온라인에서 실행

SandBase sandbox에서 실행하고 결과를 Lab에서 확인하세요.

Lab에서 열기 ↗

얻을 수 있는 것

Bring a shopkeeper, a setting, the orders and a mood; the Agent writes the recipes, the timings and the story. The Skill returns a downloadable Skill (the game project, a quoted and budget-capped SandBase asset step, a single-file build and a play-test) and two playable examples with their prepared media.

작동 방식

  1. 01

    Describe the shop and tonight’s orders

    Tell your Agent who runs the shop, what it sells, who orders and when it closes, plus the mood, for example: a sleepy bear baker in a snowed-in mountain hut, four honey cakes for skiers before the last lift, warm accordion music. The Agent runs node scripts/new-project.mjs --out my-game and writes ingredients, recipes, heat ranges, stir counts and the closing clock.

  2. 02

    Quote the rigged shopkeeper and props

    With a SandBase login or SANDBASE_API_KEY, run npm run assets -- --theme <id> --budget <n>, choosing n as your limit for this one theme. The plan covers text-to-3D for the shopkeeper, the cauldron, an ingredient and a bottle, a rigging model that gives the shopkeeper idle, cast and victory animations, a music model and a sound-effect model. Plans above n are turned down unbilled; --confirm-real submits them to your SandBase account.

  3. 03

    Build the shop and play-test it

    With Node 22.14.0, FFmpeg and Chrome, run npm ci, npm run restore, which checks prepared media by SHA-256 and fetches only missing files, and npm run build:single. dist-single/index.html plays the whole shift offline. npm run shoot -- --spec themes/<id>/verify.json covers the title, Start, adding an ingredient, heat, stirring, clearing, serving, an autopilot win, a midnight loss, retry, mute and 390×844 phone taps. In npm run preview:sandbox, serve the first card exactly, then a wrong brew: 12 seconds leave the clock.

FAQ

How do orders work in Midnight Potions?

Midnight Potions shows each order as a card with the ingredients to add, a heat range for the pot and the number of stirs. You add up to three ingredients, toggle the heat until the gauge sits inside the range, stir the listed times with Space, and serve with E. Serving a brew that does not match costs a mistake and twelve seconds from the clock.

What does Midnight Potions ask SandBase to make?

Midnight Potions asks SandBase for a text-to-3D shopkeeper, cauldron, ingredient and bottle, then a rigging model that adds idle, cast and victory animations to the shopkeeper, plus a music model and a sound-effect model. The counter, shelves and order cards are drawn in code. All of that usage is billed to your SandBase account once npm run assets has quoted it under the --budget you set.

Do I need a keyboard to play Midnight Potions?

No, Midnight Potions is fully playable by tapping, and it hides the movement joystick because the shopkeeper never walks. On a phone you tap the ingredient buttons, Heat, Stir, Serve and Clear pot, each at least 44 CSS pixels. With a keyboard the same actions are 1, 2 and 3 for ingredients, H, Space, E and R.

Will the potion shop open without internet?

Yes, each Midnight Potions example is a single offline HTML file of about 3.5 MiB. It includes Three.js, the shop code, the rigged witch with her animations, the props, the music and the sound effects, and it makes no request or model call while the clock runs. It needs WebGL 2; behaviour on specific older devices was not measured.

Can I change the recipes or the timer in Midnight Potions?

Yes, Midnight Potions keeps the recipes, heat ranges, stir counts, mistake limit and closing time in the theme, so the Agent can rewrite them for your shop. The second example uses the same rules with a different skin: a brass automaton barista fires a boiler and pours three brews before the ferry horn. A walking shopkeeper, queues of visible customers or upgrades between nights would need engine changes.

What must be installed for Midnight Potions?

Midnight Potions needs a coding Agent, Node 22.14.0, FFmpeg and a local Chrome for the play-test. New models, rigging and audio also need a SandBase login or SANDBASE_API_KEY, which the scripts keep out of logs. To rebuild the two included shops, npm run restore re-checks their prepared media by SHA-256 and the build runs without any account.

Lab 스킬 · Games

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.

Lab 스킬 · Games

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.

Lab 스킬 · Games

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.

Lab 스킬 · Games

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.

Lab 스킬 · Games

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.

Lab 스킬 · Games

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.