Skip to content

A town simulation in pale isometric line art, implemented with Ritmo ECS and PixiJs 3D

21.1 KB
Raw Blame

How to play

← back to the README

Everything a mayor needs to know: how a term runs, what puts pressure on the town, the levers you hold, how a term ends, and how the town works underneath.

Controls

drag, arrow keys pan the map (road/home tools drag to build)
right-drag, or drag with Rotate selected rotate and tilt the 3D map
Q, E rotate left/right
mouse wheel, + / − zoom
two fingers pan, pinch to zoom, twist to rotate
Home, camera reset button restore the original view
S select: click a building or a home to see what it does
R road: drag to lay one
P pave: drag along a road to pave it (coins and a stone a cell): carriers and walkers go half again as fast on it
H homes: drag to lay a row along a road
B build: pick a building, then click the map
X bulldoze
T the town panel: goals, approval, treasury, taxes, people, the crown, trade
D, W, F, A, O, C map views: desirability, workers, fire, health (aid), order, condition; the same key again hides it
space pause
1, 2, 3 run at 1×, 2×, 4×
Esc stop placing, close the panel

Share, the guide, save, load, and new town sit in the bottom right. The town also autosaves every two minutes of game time, and load takes whichever save is newer. New town and load ask before they replace the town you have.

share makes a picture of the town as you see it, with how it stands, to save or post anywhere (on a phone it opens the share sheet). Make a link there gives a link anyone can open to watch your town running, from where you were looking; Play from here makes it theirs to carry on, in their own browser. The end of a term has a share button too. Shared links last six months.

A term in office

  • The charter: a new town is founded on land you choose: its size (small, medium, large), its richness (rich, fair, harsh: forests, stone, ore, lakes, and the starting treasury), and the length of the term (45, 60, or 90 minutes at 1×). The land is an island-like stretch with a wandering coast and capes reaching out; the same seed always makes the same land.
  • Pressure builds as the town grows:
    • winters: a term is six years, and every year but the first ends in a winter when fields do not grow, fisheries catch half as much, and homes eat faster;
    • administration: the town hall costs more per resident the more residents there are, so a citizens' home of eight costs twice a cottage of four; by about 500 residents another settler costs about what they bring in once their food is paid for (the build tooltip says what a home would bring in after it), so a town grows past there by finer homes, whose people pay more each;
    • food is eaten by the resident: a walker's visit feeds a cottage one fish or loaf, a citizens' home two, a townhouse three;
    • the crown asks for goods the town makes, more as the term goes on (and small again when a new term begins); sending them pays, and an unanswered request is a fine and a snub the town remembers;
    • the market: prices fall the more the town sells and rise, three times as fast, the more it buys; a dear price calms only slowly, so traders top up a shortfall but a town that lives on bought food pays more for it every minute; the open stone and ore are quarried down to worked faces, which give one more every 90 seconds, so a quarry or mine beside them goes on at about a third of its pace (the chronicle says when the last open rock is gone); the bulldozer clears a worked face for building, and it gives nothing more;
    • approval, from -100 to 100, follows needs met, taxes, unpaid wages, snubs from the crown, and hungry winters, and decides how many people each home holds. Taxes above 100% also send residents away directly, settlers sooner than citizens (a cottage holds 80% at 150% and half at 200%), so the most a rate brings in comes before the top of the slider: the town panel shows what each rate would bring in once the homes settle. Taxes above 125% also leave a grudge that builds for as long as they stay high and fades over ten minutes or so, so a term of squeezing cannot be undone by cutting taxes at the end.
  • The levers, each a slider: taxes per tier (50% to 200%); for each good, sell beyond the reserve or buy up to it (at half again the price), and how much each time the traders call, or neither (a new town trades nothing until told to); the reserve itself; pausing a building (no workers, a quarter of its upkeep); answering the crown; and the speed of time (space pauses, 1, 2, 3 for 1×, 2×, 4×).
  • Ranks: a town is founded as a hamlet and rises to a village, a town, and a city. Each rank has its goals (residents and an income for the land's size, a share of them citizens, approval; a city also wants 15% of its people burghers, in townhouses, and a guildhall). The income goal is coins a minute after upkeep and administration, over the last minute, out of debt: a medium town asks 150 a minute, a village less, a city more. Coins held count for nothing: a treasury is for spending. Hold every goal of the next rank for two minutes and the town rises: the crown sends a reward, and play goes on. A rank is never lost. The town panel shows the next rank's goals.
  • Upgrades are made where a building stands, so they need no more land. A gold arrow floats over a building when the town needs its upgrade, and can make it: a town hall the next rank asks for, a store whose shelves are full, a quarry worked out, a farm whose mills wait on wheat, a bakery flat out while homes lack bread, a market or chapel whose walkers leave homes out, a fire watch with homes at high fire risk (one arrow a kind). Select any upgradable building: its panel says whether it is needed now, what the upgrade gives and costs, and its button begins it. The coins are paid when the works begin; carriers then bring the planks, stone, and tools, builders work them in as they come, and scaffolding rises inside its plot. It goes on working meanwhile.
    • a village: the town hall becomes a guildhall (holds twice as much, more carriers, a longer walk, a tenth less administration), and a warehouse a depot (holds 120, two more carriers);
    • a town: the guildhall a city hall (a fifth less administration), the market a market hall, the chapel a church, the bakery an ovenworks (bread every 4 s, a third baker), the farm an estate (a third hand, half again as fast), the quarry a masonry (cuts worked-out rock at full pace), and the fire watch a fire brigade (four firefighters, a longer walk). Every upgrade costs more upkeep. None is ever needed: each pays for itself in under an hour of play, in coins or in what it does. Pulling one down gives back part of what all of it cost.
  • The end of a term: it is lost to bankruptcy (three minutes in debt), revolt (approval at -50 or below for two minutes), abandonment (people fall below 15% of their peak), or dismissal (three of the crown's requests missed in a row). Otherwise the term runs out, and the town is judged flourishing, holding on, or declining. The reckoning shows the term's history, its chronicle, and its score. Then stand for the next term (the same town, new winters, the crown's requests small again) or retire and found a new town.

The neighbourhood

The town is meant to look and work like a real one: a fine centre, an industrial edge, and workers' cottages clustered by the mill or the mine. Nobody tells you to build it that way; it works best that way.

  • Desirability. Every cell has one. Buildings and the land add to it or take from it, fading with distance: a smithy, quarry, or mine takes 8 beside it and less out to four cells; a sawmill, bakery, mill, or smokehouse 4; warehouses, farms, a granary, a builder's yard 2. Water and woods give 2, and a paved street 1 beside it. The good places carry further: a chapel and the town hall give 4 out to two cells before they fade (to four), a market 2 out to two. Fine homes lift the homes beside them, never themselves: a citizens' home 1, a townhouse 2, up to 3 in all, so a good quarter keeps itself up. Ruins and run-down homes take a little. Every point counts: below 0 a home holds fewer residents (a twentieth fewer a point, down to half) and pays less (a fortieth a point, down to three quarters); above 0 it pays more, up to a quarter more. A home's panel lists its needs as one checklist: red for what it lacks now, amber for what it lacks to grow (its street among them), each with its cause.
  • Parks are laid out cell by cell from the build menu. Drag a rectangle of ground (lawn, flower beds, gravel walks, a paved square), then click a cell of it to set a furnishing (a lamp, a fountain once 30 live in town, a statue once 20 are citizens). Ground that touches is one park, and the whole park is what the streets around it feel: its beauty adds up from its ground (at most 4), its furnishings (the first of a kind in full, each more of it half as much, and one for every two whole cells, so none on a park of one), and its ways in from the street (a walk or a square beside a road: 1.5 each, two count), up to 15, out to 2 cells and one more for every 6 cells of park, up to 5; its whole worth reaches half that far before it fades. Where several parks reach a street, the finest counts in full and the others half, so scraps of park are no match for one park. A lone statue is worth little; a lawn with walks in from the street, lamps, and a statue is worth a street of citizens. Parks cost upkeep by the cell and by the furnishing: a fine centre is something you choose to pay for. Bulldozing a cell takes its furnishing first, then its ground.
  • Tiers. Settlers live anywhere. A citizens' home needs desirability 5 as well as bread, cloth, and faith, and its rebuilding is paid at once from the treasury and the store (35 coins, 4 planks, 2 stone; a townhouse 45 coins, 4 planks, 4 stone, a tool, and 2 furniture): a home the store cannot pay for waits at its tier, and one that steps down keeps its rebuilding and rises back into it for nothing. A home whose street drops below 5 goes back to settlers even with every need met. A townhouse of burghers (12 residents, the best taxes) needs desirability 12, a fire watch, a healer, and a watch house all calling on it, and furniture: a carpenter makes it from planks, and a market's walker brings a fresh piece every few minutes. A townhouse whose furniture wears out is a citizens' home again until the next piece comes. At desirability −5 or less a home is squalid and holds fewer people.
  • Workers by tier, and the commute. Settlers do the rough work (lumberjack, forester, quarry, mine, fishery, smokehouse, farm, sheep, storage, fire watch, watch house, builder's yard); citizens the skilled (sawmill, smithy, mill, bakery, weaver, carpenter, market, chapel, healer, hospital). Skilled jobs take their own crew first; citizens left over do rough work, and until there are citizens, settlers stand in at a skilled job as apprentices, at three-quarters pace. The jobs counter in the top right says how many workplaces are short, and clicking it visits them in turn. A home only supplies workers to workplaces within 15 road cells, so a distant mine needs its own workers' cottages beside it (they stay settlers in its dust, which is what it needs). A workplace short of workers says whether anyone lives within reach.

Services, and what goes wrong without them

Every home has three risk meters that rise slowly, at a pace fixed by where it stands, and every building a fire meter. A walker from the matching service resets one as it passes. Past half way a sign goes up over the home (a smoke wisp, a pale face, a broken window) and the map views turn it red; disaster comes only if the meter reaches the top. The views colour the buildings themselves, not only the ground under them.

Service Building What raises the risk If neglected
fire fire watch: a watchman, and firefighters who run to any blaze wooden settlers' cottages, a bakery, smithy, or smokehouse within two cells, crowding, a run-down building, heating in a hard winter the home catches fire; it burns for 20 seconds and may set its neighbours alight. When firefighters arrive, that house is lost but the fire goes no further. A ruin is left to clear
health healer, later a hospital hunger, crowding, desirability below 0, a quarry's or mine's dust, still water sickness: the home holds half as many until it passes or a physician calls, and it raises the risk of homes around it
order watch house: a constable approval below 0, desirability below 0, a half-empty home, a burghers' townhouse a theft (coins, or goods when the treasury is empty), then the home is left derelict

A good layout prevents disasters: streets between rows of homes stop a fire from spreading, a fire watch near the cottages gets firefighters there in time, and industry away from homes keeps them healthy and orderly. The town ticker under the top bar lists what needs attention now (fires, sickness, workshops that have waited half a minute for inputs, workplaces nobody can walk to, no food in store), each saying what to do about it, and, under lately, the news of the last minute and a half, which also pops up as it happens. Click a line to go there.

Above them, the guide teaches a new mayor the game, one step at a time: one thing to do, and one reason for it. It is a course, taught in order chapter by chapter and counted (step 3 of 8). Founding: lay homes along the town hall's road, lay a road to the water, build a fishery there, open its panel to see its workers, build a lumberjack and a sawmill (once planks run low), open the town panel to read the goal, and grow to ten homes. Growing citizens: a quarry, cloth, a chapel, bread, a look at what a home still lacks, and the goals again. Governing: the ranks, up to a city (and, once the town rank opens it, a market hall where homes lie beyond every walker). While a step's homes or building are going up it says so (carriers bringing planks to the site), so you know you did your part; when the town cannot build what a step asks for yet, it says what opens it (the farm opens at 60 residents), or that the treasury must save up, and goes on to a building it can. It never asks for a building before the town needs it, as upkeep starts the day it stands: the lumberjack and sawmill wait until planks fall below 25, the quarry until stone falls below 8, a market until homes lie beyond the town hall's walker, a smithy until tools run low. Meanwhile the course goes on, and the card says what comes next and when. Around the course, it speaks up when the town needs something (stone running low, the woods thinning, a risk rising), ahead of the course once the town is founded, and keeps quiet about such signs for a while after each one; the crown's request, winter, a fire, and the sick do not wait. Each building it asks for is a chip that starts placing one, each tool, panel, or map view it names is a chip that picks it, and "show me where" goes to the water, woods, rocks, or building it means. Its words suit the screen: tap on a phone, click and the key on a computer. A step is put away for good once the town has done it (shown or not), or when the ✕ skips it; hide guide turns it off, and the guide button in the bottom right turns it back on. The guide is saved with the town, and starts over with a new one.

Wear, spoilage, and winters

  • Food spoils in store: fish keeps about three minutes, bread about five; wheat, flour, and smoked fish keep. A granary keeps fish and bread five times as long, and a smokehouse turns fish into smoked fish, which keeps through any winter. Markets hand settlers fresh fish first, and a loaf besides when they have none: a cottage with bread on the table pays a quarter more, so bread is worth baking before anyone is a citizen. When food rots, the news says whether the town simply makes more than it eats.
  • Tools wear out: a lumberjack, quarry, mine, sawmill, mill, bakery, weaver, or smokehouse uses up a tool every 50 or 60 jobs, and works at half pace without one. Carriers keep one on hand at each.
  • Buildings and homes run down, in about half an hour to half and an hour and more to nothing. A builder's yard sends a builder to mend whatever is run down along the way, a plank for a home and a plank and a stone for a building. Below half, a workshop works at half pace and its fire risk rises, and a home looks worn and drags its street down; at nothing it falls into a ruin.
  • Winters vary: each year's is mild (fishing at 75%), normal (50%), or hard (half as long again, fishing at 25%, and heating raises every home's fire risk), rolled from the seed. The almanac in the clock shows the coming winter a year ahead (hover it for the one after), a minute before each winter the news says how much food is in store and how much the town eats a minute, and through winter the map lies frosted.

How the town works

  • A new town has a town hall in a clearing, ringed by road, plus starting coins and goods.
  • Coins: homes the town hall can reach by road pay taxes, in proportion to the needs they have met: a hungry home pays nothing, a cottage with bread pays half again, a fine street up to a quarter more, and the town panel says what the same homes would pay if every one were supplied; traders buy what the town sells and sell it what it buys; every building costs upkeep and the town hall costs administration. Building costs coins up front. The town panel (T, the town button, or the people in the top right) shows the goals, approval, treasury, people, supplies, the crown, goods and trade, and the chronicle, and holds the levers.
  • The goods bar at the top counts what is in storage. Food and other goods often go straight from who makes them to who wants them (a market, a workshop), so storage can read 0 while the homes are well fed: the arrow beside each good says which way it went over the last minute (made and bought against used and sold; → holding steady), reckoned again every ten seconds. Click the bar for each good's minute side by side: made, used, traded, in storage, and about town (in workshops, markets, baskets, and crates).
  • The coins at the top are counted the same way: the arrow and the figure under them are the treasury's last minute, every coin in and out (taxes and refunds made; upkeep, administration, building, and fines used; trade). Click them for the same table, with the treasury on its first row. The income goal goes by the steady rate (taxes, trade, upkeep, administration) shown when you hover over them.
  • Materials (planks, stone, tools) come from storage: a new building is a site until carriers have brought what it costs, then it goes up.
  • Homes fill with settlers once a road touches them. Settlers need food (fish, smoked fish, or bread); with bread, cloth, and faith on a street with desirability 5 a home becomes a two-story citizens' home that holds and pays twice as much, and on a fine street (12) with every service calling and furniture from a carpenter, a three-story townhouse. Cloth is only brought to a street fit for citizens, and furniture to one fit for burghers, however much is in store: the home's panel says so, and what the street is short of.
  • Pulling down a building or a home costs a tenth of what it cost in coins, and half its materials (rounded down) go back into storage, to build with or sell. A site not yet going up is cancelled instead: its coins and whatever was brought to it come back. A home can also be closed from its panel: it stands empty, pays nothing, and costs the town hall nothing, until it is reopened.
  • Buildings need a road at the middle of a side and workers of their crew from homes within 15 road cells. A building is not laid where no road touches the middle of a side (the ghost shows red, and says why), and a gatherer placed with nothing in reach (no water for a fishery, say) says so before it is laid. While one is placed (or selected), the roads its walkers or its workers would use are shown; the homes tool shows how far its residents would walk to work. Parks need no road and no workers; their stone comes straight out of storage. Gatherers work the land within their reach (trees, rocks, water, fields); workshops turn one good into another.
  • Carriers walk every good along the roads: producers send to whoever wants it (a site, a workshop, a market) or else to storage; storage sends to whoever wants what it holds.
  • Walkers from the town hall and markets hand out food and cloth to the homes they pass; the chapel's brings faith; a fire watch's, a healer's, and a watch house's keep down the risks; a builder's mends.
  • Larger buildings unlock as the town grows (by residents, then citizens).