Starter town (hand-written), explained · celworld

Starter town (hand-written)

.scene · 44 lines · laying out · 13 models · 1 groups · seed 7

Starter town (hand-written) starts from the town template, names 13 things to use (4 from the library, 9 built-in), lays them out in 13 lines, gives 5 groups something to do in 5 life lines.

built-in houses and street furniture, library critters

squaremeadoworchardmainlane−z
L1

Starter town (hand-written)

scene
1scene starter_town "Starter town (hand-written)" template=town seed=7 size=40

The scene line. It starts from the town template, open grass patch for streets, houses and a square. The ground runs 40 m from the centre to the edge. Seed 7 drives every random choice below: the same seed lays everything out the same way, every time.

template
town
ground radius
40 m
seed
7
mood
day (template)
L3

house

use
3use house = building/cottage seeds=1..6

house is the built-in building generator cottage. Each one placed draws one of 6 seeds, so neighbours are different variants.

seeds
1–6
L4

shop

use
4use shop = building/shop

shop is the built-in building generator shop.

L5

hall

use
5use hall = building/civic:library

hall is the built-in building generator civic, form library.

L6

tree

use
6use tree = nature/tree seeds=1..8

tree is the built-in nature generator tree. Each one placed draws one of 8 seeds, so neighbours are different variants.

seeds
1–8
L7

bush

use
7use bush = nature/bush seeds=1..4

bush is the built-in nature generator bush. Each one placed draws one of 4 seeds, so neighbours are different variants.

seeds
1–4
L8

flower

use
8use flower = nature/flower seeds=1..6

flower is the built-in nature generator flower. Each one placed draws one of 6 seeds, so neighbours are different variants.

seeds
1–6
L9

lamp

use
9use lamp = prop/lamp:lantern

lamp is the built-in prop generator lamp, form lantern.

L10

bench

use
10use bench = prop/bench:park

bench is the built-in prop generator bench, form park.

L11

well

use
11use well = prop/fountain:basin

well is the built-in prop generator fountain, form basin.

L12

Zapkit

use
12use zap = zapkit

zap is Zapkit, the library model zapkit (its latest version).

L13

Pebblo, the pebble golem toddler

use
13use pebble = pebblo

pebble is Pebblo, the pebble golem toddler, the library model pebblo (its latest version).

L14

Sproutlet

use
14use sprout = sproutlet

sprout is Sproutlet, the library model sproutlet (its latest version).

L15

Ember pup

use
15use pup = emberpup

pup is Ember pup, the library model emberpup (its latest version).

L17

main

street
17street main -34 -8 34 -8 width=4

Draws a street named main through 2 points, 4 m wide, with paving. Lots lines stand buildings along it, and layout keeps things off it. Used on 2 lines: 23, 27.

length
68 m
width
4 m
L18

lane

path
18path lane 0 -4 0 5 width=2.4 paved

Draws a path named lane through 2 points, 2.4 m wide, with paving. Layout keeps solid things off it. Used on 1 line: 38.

length
9 m
width
2.4 m
L19

square

plaza
19plaza square 0 13 r=7

Marks out a round plaza named square, a circle of radius 7 m round (0, 13), and covers it in paving.

shape
circle
L20

meadow

area
20area meadow rect -34 4 -10 30

Marks out a rectangle from (−34, 4) to (−10, 30), 24 × 26 m, named meadow. An area places nothing by itself: ground, scatter and wander lines use it (2 lines: 28, 30).

shape
rect
L21

orchard

area
21area orchard rect 10 4 34 30

Marks out a rectangle from (10, 4) to (34, 30), 24 × 26 m, named orchard. An area places nothing by itself: ground, scatter and wander lines use it (2 lines: 29, 31).

shape
rect
L23

Lots on main

lots
23lots main house*4,shop,house*3 side=both gap=2.5

Lines the street main with house, house, house, house, shop, house, house and house in turn on both sides, 2.5 m between lots and set 1 m back. Each lot is as wide as what stands on it, so nothing overlaps.

L24

Place the hall

place
24place hall at 0 -32 face 0

Puts one hall at (0, −32), facing 0° (toward +z).

L25

Place the well

place
25place well at 0 13

Puts one well at (0, 13).

L26

A ring of bench

ring
26ring bench at 0 13 r=5.2 count=4 face in

Stands 4 bench on a circle of radius 5.2 m round (0, 13), facing the centre.

L27

Along main

along
27along main lamp every=12 side=left offset=0.4

Walks the path main and drops lamp every 12 m, on the left side, 0.4 m off its edge, facing the path.

L28

Scatter tree

scatter
28scatter tree in meadow count=10 spacing=1.5

Scatters 10 tree at random over the area meadow, at least 1.5 m apart, each turned at random. The scene seed and this line's own text pick the spots, so editing another line moves none of them.

L29

Scatter tree

scatter
29scatter tree in orchard count=10 spacing=1.5

Scatters 10 tree at random over the area orchard, at least 1.5 m apart, each turned at random. The scene seed and this line's own text pick the spots, so editing another line moves none of them.

L30

Scatter bush, flower

scatter
30scatter bush,flower*2 in meadow count=14 spacing=0.6

Scatters 14 bush or flower (2 in 3) at random over the area meadow, at least 0.6 m apart, each turned at random. The scene seed and this line's own text pick the spots, so editing another line moves none of them.

L31

Scatter flower

scatter
31scatter flower in orchard count=10 spacing=0.5

Scatters 10 flower at random over the area orchard, at least 0.5 m apart, each turned at random. The scene seed and this line's own text pick the spots, so editing another line moves none of them.

L33

Place the zap

place
33place zap at 2 13 as kids

Puts one zap at (2, 13), in the group kids.

group
kids
L34

Place the pebble

place
34place pebble at -2 11 as kids

Puts one pebble at (−2, 11), in the group kids.

group
kids
L35

Place the sprout

place
35place sprout at 3 9 as kids

Puts one sprout at (3, 9), in the group kids.

group
kids
L36

Place the pup

place
36place pup at -3 14

Puts one pup at (−3, 14).

L37

kids wander square

wander
37wander kids in square speed=0.7

Lets kids wander the area square at about 0.7 m/s, pausing 1–4 s between walks. They steer round what is placed there.

speed
0.7 m/s
L38

pup follow lane

follow
38follow pup lane speed=1.4 pingpong

Sends pup along the path lane at 1.4 m/s, there and back again, spread out along it.

speed
1.4 m/s
L39

zap: zap

cycle
39cycle zap zap every 5..9s

Every 5–9 s, each of zap plays zap for 2.5 s, then rests. Each one keeps its own clock, so they never fire together.

L40

pebble: stomp

cycle
40cycle pebble stomp every 6..10s

Every 6–10 s, each of pebble plays stomp for 2.5 s, then rests. Each one keeps its own clock, so they never fire together.

L41

sprout: happy

do
41do sprout happy

Keeps sprout playing their happy state for the whole scene. A state is a named set of anim lines in the model.

L43

The overview camera

camera
43camera orbit 26 height 15 at 0 6

Where the viewer opens: the camera orbits (0, 6) from 26 m out and 15 m up.

distance
26 m
height
15 m