Flour → dough → bread → counter. Keeps the bakery display stocked.
moveTo(CRATE); pick(FLOUR); moveTo(MIXER); useMachine(MIXER); moveTo(OVEN); useMachine(OVEN); moveTo(COUNTER); deliver(BREAD);
One compound, three frog robots, one tiny loop: write code → robot moves → the business changes. Start with the whole demo or just the bakery.
Follow the mission card on the right — it moves to the next step automatically as you play.
Bun bakes, Mika treats patients, Pip stocks the shelf.
Paint Market or Clinic zones, place stations, then load simple scripts.
Use Recipes for ready-made code. Errors only affect one robot.
No programming experience needed. The advanced tree is optional — the starter scripts use only while, if, and simple robot commands.
Each recipe uses only the basics: while, if, moveTo, pick, useMachine, deliver and wait. Applying replaces the active robot's script code and leaves the crew stopped — press Run or RUN ALL.
Flour → dough → bread → counter. Keeps the bakery display stocked.
moveTo(CRATE); pick(FLOUR); moveTo(MIXER); useMachine(MIXER); moveTo(OVEN); useMachine(OVEN); moveTo(COUNTER); deliver(BREAD);
Wait for a patient, make MEDICINE, then treat the bed.
if (clinic.waiting()) {
moveTo(CRATE); pick(HERB);
moveTo(MEDSTATION); useMachine(MEDSTATION);
moveTo(BED); deliver(MEDICINE, BED);
}
Move bread from the bakery counter to the market shelf.
if (counter.breadCount() > 1) {
moveTo(COUNTER); pick(BREAD);
moveTo(SHELF); deliver(BREAD);
}
Tip: choose a robot first (crew row or script tab), then apply. Recipes replace code for everyone using that script.
First run shows a welcome panel: Play demo compound builds Market + Clinic and runs the crew, while Start the bakery runs only Bun. Quick feature tour highlights each panel with a spotlight. Reopen them with ?welcome=1 or ?tour=1.
The mission card on the right is the staged tutorial. It shows one task at a time, a Go button, progress 0 / 7, and the compound checklist. Missions advance automatically when you serve bread, paint zones, place stations, stock the shelf, or treat a patient.
Use Recipes for ready-made simple scripts. Apply to the active robot, then press Run. Reset all three scripts restores the starters without changing assignments.
Three robots, three scripts: Bun bakes, Mika runs the clinic, Pip stocks the market. Press RUN ALL in the crew card, or Run to start only the active robot.
Click a tab or a crew row. Each script has its own code; each robot keeps its own line, error and run state. Use ASSIGN SCRIPT to give the active robot any script — two robots can run the same script.
Shared-script tabs show a multi-colour dot. Editing a shared script stops every robot running it; the other scripts keep working.
Find the station tags CRATE, MIXER, OVEN, COUNTER, SHELF, BED and MEDSTATION. The constants in your code use the same names.
Bakery customers buy from the counter. Shoppers buy from a stocked shelf at the register; Pip moves BREAD from the counter to the shelf. Patients need MEDICINE made from HERB at the Med station.
Open Zones, paint a Market patch, then place a Shelf and a Register fully inside it. Paint a Clinic patch for a Bed and a Med station. When both are ready, press Load crew scripts.
A visitor can have up to three needs in one visit: clinic → bakery → market. The floating icon shows the current need and the small counter (1/3) shows the chain. The same visitor can complete several objectives.
Open Tree in the IDE (or Complex in the dock). The tree starts in simple view: Variables, Code Length and CPU. Arrays and all other advanced tools are behind Show advanced tools. You do not need any upgrade to finish the tutorial.
If you want to try variables, unlock Variables (40 XP) and write:
let loaves = 3; print(loaves);
Unlock Arrays, then try:
let list = [FLOUR, HERB];
let i = 0;
while (i < list.length) {
print(list[i]);
i = i + 1;
}
After for Loops + Loop Control:
for (let i = 0; i < 10; i = i + 1) {
if (i == 2) { continue; }
if (i == 4) { break; }
print(i);
}
After Functions:
function double(n) {
return n * 2;
}
print(double(21));
After Closures:
function makeAdder(n) {
return function(x) { return x + n; };
}
let add5 = makeAdder(5);
print(add5(2));
Named recursion + default parameter:
let sum = function add(n, acc = 0) {
if (n <= 0) { return acc; }
return add(n - 1, acc + n);
};
print(sum(3));
The top-bar save icon opens Blueprint & Bundle. Device saves show a preview, plot size, station count, funds and level. Save new slot captures the current compound; each manual slot has Load, Save (overwrite), Delete (click twice) and a Rename link. Names are unique and included in bundles.
Export bundle writes every device slot into one JSON file. Import JSON / bundle loads a single compound or merges a bundle. Bundle slots are added without replacing local slots; an imported Auto slot becomes a manual Imported autosave. Capacity stays at eight manual slots.
Autosave keeps one Auto slot, written after a few seconds and then every 30 seconds during normal play. Toggle it in the panel. Showcase URLs, share links and ?save=1 pause autosave. Visitors, carried items and machine progress are not saved; use Export for JSON.
Copy share link packs the current compound into a compact URL hash. It needs a hosted copy (http/https) — local file:// pages use Export or a bundle instead. Opening a share link loads the compound and pauses autosave so it does not overwrite the recipient's slots.
Run / Stop controls the active robot. RUN ALL / STOP ALL controls the crew. Pause freezes the simulation. 1× / 2× / 4× changes speed. Drag to pan, scroll to zoom, double-click to recenter.
Build: click to place, R rotates, Esc cancels, right-drag pans. Sell refunds 50%. Expand adds land. Esc also closes an open panel.
Code features stay locked until you buy them in the Code & Crew tree.
CRATEMIXEROVENCOUNTERSHELFREGISTERBEDMEDSTATIONFLOURDOUGHBREADHERBMEDICINEBAKERYMARKETCLINICCORRIDOR
Variables, code length and CPU are enough to start. Advanced tools are optional.
Unlocks are account-wide and persist across runs. The compiler checks them when a script starts.
CPU raises line execution speed for that robot (max 10 ln/s). Money comes from serving visitors.
Advanced code examples appear when you press Show advanced tools.
let list = [FLOUR, HERB];
let i = 0;
while (i < list.length) {
print(list[i]);
i = i + 1;
}
After for + Zone Sensor + Robot Radio
for (let i = 0; i < 3; i = i + 1) {
print(zone.stock(MARKET));
radio.post("tick " + i);
}
After Functions
function double(n) {
return n * 2;
}
print(double(21));
After Closures
function makeAdder(n) {
return function(x) { return x + n; };
}
let add5 = makeAdder(5);
print(add5(2));
Device slots live in localStorage with a thumbnail, name, time and blueprint. Rename manual slots with the link under their name. Autosave keeps one Auto slot; up to eight manual slots can be saved or overwritten. A bundle exports every device slot and can be merged on another browser; an imported Auto slot becomes a manual “Imported autosave”. Copy share link packs the current compound into a compact URL hash and needs a hosted copy (http/https). Loading a compound stops the simulation and resets the run. If the browser blocks storage, use Export.