Duck pond game · celworld
seed

Duck pond game

duck_pond_game v1Agent-madec5
Open in Playground

v1 cost

$0.975est.

Agent-made: its share of a Claude Code session, priced as API-equivalent Opus 5.5.

Output share
2.6k
Time share
1m 53s
The agent session
All 1 version$0.975

Budget

c5 · 40 lines
Shapes80 / 100
Triangles7,760 / 8,000
Draw calls3 / 4
States
None: it rests
Used in
Made
1asset duck_pond_game "Duck pond game" complexity=5
2// hook-a-duck: a round striped trough with a fat rim, a ring of little ducks bobbing round on the
3// current, a centre post holding a scalloped canopy fringed with bulbs, and a prize sign on top
4let R = 1.15..1.3
5let stA = cherry:3|cobalt|teal|grape
6let stB = cream:3|white
7let trim = navy:2|plum
8let duckC = sunflower:3|lemon
9let beakC = tangerine:3|marigold
10let metal = brass:3|copper
11let bulbC = glow:3|sunflower
12
13// the trough, its rim and the water (the water turns, carrying the ducks)
14cyl trough h=.72 r=R round=.06 stripes=[stA stB] panels=16 bands=[.1:stA] color=trim segs=32
15torus rim on=trough at=(0, .72, 0) R=R-.02 r=.1 color=stB segs=40 sides=7
16cyl water on=trough at=(0, .58, 0) h=.1 r=R-.08 color=water segs=40 joint
17
18// the ducks: a body, a tail tip, a head with a bead face and a beak
19ball duck x8 on=water ring at=(R*.68, .14, 0) r=(.12, .1, .15) color=duckC segs=10 rings=6 joint
20cone tail on=duck at=(0, .02, -.12) rot=(-60, 0, 0) h=.1 r=.06 color=duckC segs=8
21ball head on=duck at=(0, .13, .08) r=.085 color=duckC segs=10 rings=6
22face look on=head eyes=dot mouth=none size=.3 spacing=34 eyeY=14 detail=.5
23cone beak on=head surf=(0, -14) lift=-.02 h=.07 r=.035 r2=.012 depth=.6 color=beakC segs=8
24ball 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
25
26// the centre post and the canopy
27cyl post on=trough at=(0, .6, 0) h=1.9 r=.07 bands=[.4:stB .5:stA] color=metal segs=10
28cone 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=36
29ball 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=4
30ball bulb x12 on=canopy ring at=(R*.96, .02, 0) r=.075 color=bulbC ink=glow segs=8 rings=5
31ball knob on=canopy at=(0, .6, 0) r=.09 color=metal segs=8 rings=5
32
33// the prize sign: a star on a stalk
34rod stalk on=knob at=(0, .05, 0) to=(0, .38, 0) r=.03 sides=6 color=metal
35slab 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
36
37// the current carries the ducks round, each bobbing and rocking on its own beat
38anim water ry spin hz=.07
39anim duck py sin amp=.025 hz=.9 stagger=.31
40anim duck rz sin amp=6 hz=.6 stagger=.23
41