InfraCityOpen editor

Words of your own · a bakery

A pack written inside the city: a bakery brings its own building types, room kinds and shapes, and the city carries them in a link, a design and a file.

Words of your own · a bakery, drawn as an isometric city

The CityScript

This is all there is to it. Change it in the editor and the city redraws.

%% A bakery with words of its own: the pack below is written in the city, so the city carries it
%% wherever it goes. Copy the block, change a name, a colour or a shape, and the map follows.
city 36x24

pack bakery "Bakery" about="bread, from dough to the shop window"
  buildingtype bakehouse "Bakehouse" size=3x2 floor=30 roof=flat wall=#F1E6D2 top=#B5651D use="where bread is made"
  buildingtype shopfront "Shopfront" size=2x2 floor=28 roof=gable wall=#F7F0E4 top=#C0392B use="where bread is sold"
  roomkind mixer "Mixer" color=#D9A441 icon=gear use="where flour, water and yeast become dough"
    drum at=0.5,0.5 r=0.75 h=3 fill=$frame
    drum at=0.5,0.5 r=0.5 z=3 h=4 fill=$state
    box at=0.46,0.1 size=0.08,0.8 z=7 h=1.5 fill=$accent
  roomkind oven "Oven" color=#C0504D use="where dough becomes bread"
    box at=0.1,0.1 size=0.8,0.8 h=7 fill=$frame
    box at=0.22,0.7 size=0.56,0.1 z=1.5 h=4 fill=$state shade=1.2
    dot at=0.5,0.5 z=9 r=3 fill=$accent
  roomkind rack "Cooling rack" color=#8E7CC3 keeps=true use="where loaves cool"
    walls at=0.1,0.1 size=0.8,0.8 h=9 bays=3 fill=$frame alpha=0.5
    box at=0.15,0.2 size=0.7,0.2 z=2 h=2 fill=$state
    box at=0.15,0.55 size=0.7,0.2 z=5 h=2 fill=$state
  roomkind till "Till" color=#4CAF8E use="where bread is paid for"
    box at=0.15,0.3 size=0.7,0.4 h=5 fill=$state
    line points=0.2,0.5,8;0.8,0.5,8 color=$accent width=1.5

district bakery "Bakery" 3,4..22,10

building bakehouse bakehouse at 4,5 "Bakehouse" owner="Baker"
  floor bakehouse.f "Baking"
    room bakehouse.mixer mixer "Mixer"
    room bakehouse.oven oven "Oven"
    room bakehouse.rack rack "Cooling racks"

building shop shopfront at 12,5 "Shop" owner="Shop assistant"
  floor shop.f "Selling"
    room shop.till till "Till"

gate customers at 0,6 "Customers come in"
road customers -> shop

link bakehouse.mixer -> bakehouse.oven "dough" variant=emphasis
link bakehouse.oven -> bakehouse.rack "loaves"
link bakehouse.rack -> shop.till "to the window"

pipeline bread "A loaf of bread" bakehouse -> [mix] -> [bake] -> [cool] -> shop
  step bakehouse "The baker mixes, bakes and cools the dough"
  step shop "The loaf is on the shelf for customers"