Playground
From duck_pond_game · 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
asset duck_pond_game "Duck pond game" complexity=5// hook-a-duck: a round striped trough with a fat rim, a ring of little ducks bobbing round on the// current, a centre post holding a scalloped canopy fringed with bulbs, and a prize sign on toplet R = 1.15..1.3let stA = cherry:3|cobalt|teal|grapelet stB = cream:3|whitelet trim = navy:2|plumlet duckC = sunflower:3|lemonlet beakC = tangerine:3|marigoldlet metal = brass:3|copperlet bulbC = glow:3|sunflower// the trough, its rim and the water (the water turns, carrying the ducks)cyl trough h=.72 r=R round=.06 stripes=[stA stB] panels=16 bands=[.1:stA] color=trim segs=32torus rim on=trough at=(0, .72, 0) R=R-.02 r=.1 color=stB segs=40 sides=7cyl water on=trough at=(0, .58, 0) h=.1 r=R-.08 color=water segs=40 joint// the ducks: a body, a tail tip, a head with a bead face and a beakball duck x8 on=water ring at=(R*.68, .14, 0) r=(.12, .1, .15) color=duckC segs=10 rings=6 jointcone tail on=duck at=(0, .02, -.12) rot=(-60, 0, 0) h=.1 r=.06 color=duckC segs=8ball head on=duck at=(0, .13, .08) r=.085 color=duckC segs=10 rings=6face look on=head eyes=dot mouth=none size=.3 spacing=34 eyeY=14 detail=.5cone beak on=head surf=(0, -14) lift=-.02 h=.07 r=.035 r2=.012 depth=.6 color=beakC segs=8ball dot on=duck at=(0, -.02, .1) r=(.05, .04, .04) color=sel(i - 3*floor(i/3), stA, cobalt, pink) segs=6 rings=4// the centre post and the canopycyl post on=trough at=(0, .6, 0) h=1.9 r=.07 bands=[.4:stB .5:stA] color=metal segs=10cone canopy on=post at=(0, 1.75, 0) h=.62 r=R*.95 r2=.06 stripes=[stA stB] panels=12 scallop=.05 color=stA segs=36ball fringe x12 on=canopy ring ring0=15 at=(R*.93, -.03, 0) r=(.05, .13, R*.2) color=sel(i - 2*floor(i/2), stB, stA) segs=6 rings=4ball bulb x12 on=canopy ring at=(R*.96, .02, 0) r=.075 color=bulbC ink=glow segs=8 rings=5ball knob on=canopy at=(0, .6, 0) r=.09 color=metal segs=8 rings=5// the prize sign: a star on a stalkrod stalk on=knob at=(0, .05, 0) to=(0, .38, 0) r=.03 sides=6 color=metalslab star on=stalk at=(0, .55, -.03) pts=[0,.24 .06,.08 .23,.07 .1,-.03 .15,-.2 0,-.1 -.15,-.2 -.1,-.03 -.23,.07 -.06,.08] t=.06 round=.02 color=sunflower edge=tangerine// the current carries the ducks round, each bobbing and rocking on its own beatanim water ry spin hz=.07anim duck py sin amp=.025 hz=.9 stagger=.31anim duck rz sin amp=6 hz=.6 stagger=.23
Clean: no issues on this seed.
Loading
seed
Shapes— / 100
Triangles— / 8,000
Draw calls— / 4