Playground
From pebblo · Compiles in your browser · $0
CtrlShiftS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
asset pebblo "Pebblo, the pebble golem toddler" complexity=4// a pebble golem toddler: a round stone belly on two stubby stone feet, a big round stone head// with huge eyes, a soft moss cap topped by a tiny sprout flower, and stone mitt arms.// Readable from 20 m: the stacked round stones and the moss cap with its flower.// Three colourways: river grey with moss, warm sandstone with leafy moss, and a rare lilac 'shiny'.// The only states are idle (sway) and stomp (hard bob, a dust puff at each foot).let S = .95..1.1let shiny = chance(.08)let warm = chance(.45)let rockC = sel(shiny, sel(warm, rockCool, sandstone), lilac)let rock2 = sel(shiny, sel(warm, rockGrey, warmstone), bubblegum)let mossC = sel(shiny, sel(warm, moss, leafB), aqua)let pop = sel(shiny, sel(warm, tangerine, cherry), sunflower)let eyeC = sel(shiny, navy:2|plum, grape)// feet: two stubby stones, standing on the groundball foot at=(.1*S, .068*S, .02*S) mirror r=(.095, .07, .11)*S color=rock2 segs=12 rings=8 joint// body: the round belly stone, the root of the upper stackball body at=(0, .24*S, 0) r=(.21, .18, .19)*S color=rockC~ segs=20 rings=12 jointball belly on=body surf=(0, -5) upright lift=-.05*S r=(.12, .11, .08)*S color=light(rockC, .08) segs=14 rings=8ball pebble on=body surf=(120, 25) mirror upright lift=-.02*S r=.05*S color=rock2 segs=8 rings=5ball backstone on=body surf=(180, -10) upright lift=-.02*S r=.055*S color=rock2 segs=8 rings=5// arms: short stone stubs with round mittslimb arm on=body at=(.17*S, .04*S, 0) mirror roll=25 len=.12*S r=(.06, .065)*S color=rockC segs=10 jointball fist on=arm at=end r=.075*S color=rock2 segs=12 rings=8// head: the big round stone with big eyesball head on=body at=(0, .26*S, .02*S) r=(.22, .19, .2)*S color=rockC segs=24 rings=14 jointface look on=head eyes=round mouth=smile size=.28 spacing=26 eyeY=4 mouthY=-28 mouthW=.3 iris=eyeC detail=.6// moss cap with drapey tuftspuff cap on=head at=(0, .14*S, -.01*S) r=(.19, .09, .18)*S color=mossC segs=18 rings=10puff tuft x4 on=head ring ring0=45 surf=(0, 38) upright lift=-.04*S r=(.08, .06, .08)*S color=mossC segs=10 rings=6// the sprout flower on toprod sprout on=cap at=top+(0, -.02*S, 0) to=(0, .09*S, 0) r=.014*S sides=6 color=mossC*.8 jointslab leaflet on=sprout at=(.01*S, .04*S, 0) mirror roll=20 scale=S pts=[0,0 .07,.03 .09,0 .05,-.02] t=.02 color=mossCball bud on=sprout at=end r=.03*S color=cream segs=8 rings=5ball petal x4 on=bud ring at=(.035*S, 0, 0) r=(.03, .02, .03)*S color=pop segs=6 rings=4// fx: dust puffs kicked up where the feet slam downfx stomp: puff on=foot at=bottom hz=1.6 speed=.6 spread=65 size=.045 grow=2 n=5 color=cream color2=rockSand// idle: a toddler sway, a little nod, arms swinging, the sprout wagginganim idle: body sway amp=5anim idle: head nod amp=4 hz=.4anim idle: arm rz sin amp=8 hz=.35anim idle: sprout wag amp=15 hz=.8// stomp: the feet lift and slam in turn, the body drops hard on every landinganim stomp: foot py keys=[0:0 .25:.07 .45:0 1:0] hz=1.6 twin=.5anim stomp: body py keys=[0:0 .5:.02 .9:-.045 1:0] hz=3.2anim stomp: arm rx keys=[0:0 .3:-25 .5:10 1:0] hz=1.6 twin=.5anim stomp: sprout rx keys=[0:0 .5:-10 .9:18 1:0] hz=3.2
Clean: no issues on this seed.
Loading
seed
Shapes— / 70
Triangles— / 6,000
Draw calls— / 4