Ember Colony
A small, low-poly 3D colony sim, written entirely in NAL. You start with six colonists. They gather wood, stone and food, turn those into planks, meals and tools, and work through a research tree. Wolves come at night, and as the colony grows it draws traders, wanderers, sickness and bandit raids. You don't control the colonists directly. You decide what gets built and what matters most, and they get on with it as best their needs and skills allow.
How a colonist decides what to do
Each colonist runs the same NAL state_machine, which has 13 states. When a colonist is idle it scores every job you've enabled, roughly (5 − priority) × how much the colony needs it × (1 + skill × 0.1) with a little randomness, and picks the highest. Other systems can step in and send a colonist to bed at nightfall, or to eat when hunger gets bad. If mood drops low enough, they have a breakdown.
Idle or Seeking) to keep the diagram readable. Source: ColonistBrain in examples/ember_colony/src/colonists.nal.What's in the game
Camera and building
You get an RTS-style camera with pan, rotate, zoom and edge-scroll. Pick a building and a see-through ghost follows the cursor, snapping to a grid and showing green or red. R rotates it. Placing it leaves a blueprint, and builders carry materials over and put it up. Cancel halfway and whatever they'd delivered comes back.
Colonists
Each colonist has a name and one or two traits: Industrious, Lazy, Glutton, Tough, Night Owl or Optimist. They have six skills that improve as they work. They get hungry and tired. Mood is a running total of things like "Ate a fine meal", "Slept outside" and "A friend died".
Workshops
A Sawmill turns wood into planks, and a Kitchen makes meals from food and wood. A Mine built next to rock produces stone and ore, which a Smithy turns into tools. A crafter claims a workshop and runs up to three batches. If they're interrupted, the half-finished batch stays put for the next person.
Research
Fourteen technologies across four tiers, kept in an array[string] queue. A Research Desk generates points. Every locked building and bonus checks one NAL function, has_tech(id), and you need the Charter to win.
Threats and events
From the second night on, wolves arrive from the edges of the map, one more every three days, up to six. A storyteller builds up tension as the days pass and the colony gets richer, then spends it on good harvests, traders, wanderers, wolf packs, sickness and bandit raids. Watchtowers and palisades help, and the Infirmary treats the sick and hurt. If every colonist dies, you lose.
The HUD
The top bar, Colony overview, tabbed Build menu, Inspector, Research and Alerts windows are all ui blocks. That covers resources with tooltips, the date, season and weather, game speed, days of food left, work priorities and the colonist list. Name tags and health bars float over colonists and enemies. A "First Day" guide walks new players through their first steps.
Seasons
Four seasons of three days each, with weather rolled every morning. Day and night lighting comes from the sun and moon, and the fog and ground colour change with the season, all set from NAL. Farms lie fallow in winter, and colonists need wood for warmth.
Saving and settings
The game autosaves every dawn and on F5, and the title screen offers Continue. Volume, fullscreen, edge scrolling, autosave and the guide are settings that persist. Win or lose, a Colony Chronicle sums up the run.
Finding out what the engine can't do
Our earlier demos were small and only used features we already trusted, so they rarely turned up anything new. Ember Colony has one rule: everything goes through NAL, with no shortcuts in the engine. When we hit something NAL couldn't do, we logged it in the same format each time (what we tried, what we expected, what happened, the workaround, the fix we'd want) and then fixed the engine.
So far there are nineteen entries. Seventeen are fixed and one partly, and for one we kept a workaround in the game rather than change the engine. None are fully open.
| Gap | Status | What changed |
|---|---|---|
Entity.id() was 0 | Fixed | Colonists had never actually been sent to sleep or to eat. Now they are, and there are tests for it. |
| Spawn returned no ref | Fixed | A spawn now reserves the new entity's ID straight away, so you can set its fields before it appears. |
Untyped get_field | Fixed | Reading another entity's field returns its real type (string, array, reference). It used to come back as 0.0. |
Seed after on_start | Fixed | The same seed now always gives the same map. |
| Opaque ghosts | Fixed | MeshRenderer.alpha makes models see-through. |
| Headless 3D capture | Fixed | The MCP server now renders 3D scenes on the CPU and loads multi-file projects, so agents can screenshot Ember Colony's menu and game without a window. |
enabled on ui buttons | Fixed | A disabled button used to look disabled but still respond to clicks. Now the click is dropped. |
extends overrides | Fixed | Overriding one field of a component on an entity reset the rest of that component to defaults. Now the fields merge. |
Progress
- F2a: moved to 3D, with the RTS camera, building placement and the inspector
- F2b: colonists got names, traits, skills, rest, mood and work priorities
- F2c: blueprints and builders, then workshops and production chains
- F2d: the research tree and Research Desk, with buildings locked behind techs
- F2e: seasons, weather, and lighting you can control from NAL
- F2f: random events (raids, wanderers, traders, sickness) that get harder over time, plus warnings when things go wrong
- F2g: balancing, performance and scripted test playthroughs (more on this)
- E1–E2: animated characters, a more natural palette, sound effects and music, and labels over things in the world
- E3: saving, the title screen and settings, a guided first day, the full HUD, end-of-game summaries, and the Granary, Palisade and Infirmary
- E4: downloadable builds for macOS, Windows and Linux, a 60 FPS check in release, and playtesting by people
The 3D models are free CC0 assets from Kenney: the Fantasy Town, Survival, Nature, Mini Characters, Cube Pets and Tower Defense kits. We put the workshop buildings together from kit pieces in Blender.