Treasure chest · celworld
seed

Treasure chest

treasure_chest v1Agent-madec4
Open in Playground

v1 cost

$0.914est.

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

Output share
2.5k
Time share
87s
The agent session
All 1 version$0.914

Budget

c4 · 35 lines
Shapes32 / 70
Triangles3,872 / 6,000
Draw calls2 / 4
States
open
Used in
Made
1asset treasure_chest "Treasure chest" complexity=4
2// a fat banded treasure chest on little feet: plank sides, iron corner straps and studs, a brass lock
3// plate with a keyhole, a domed lid hinged at the back. Inside, a heap of gold and a gem wait. On
4// open the lid swings back and sparkles pop over the coins.
5let S = .95..1.08
6let woodC = oak:2|walnut:2|redwood|honey
7let bandC = iron:3|brass|copper
8let goldC = sunflower:2|marigold
9let gemC = cherry|cobalt|mint|grape|aqua
10
11// the box on its feet
12box chest at=(0, .06, 0) size=(.92, .5, .6)*S round=.05 bev=2 stripes=[woodC woodC*.86] panels=5 color=woodC
13box foot x2 on=chest at=(0, -.06, 0) row=(0, 0, .48)*S size=(.94, .07, .1)*S round=.03 color=bandC
14box strap x2 on=chest at=(0, .006, 0) row=(.6, 0, 0)*S size=(.08, .52, .64)*S round=.02 color=bandC
15ball stud x4 on=strap at=(0, .1, .315*S) row=(0, .11, 0) r=.022 color=bandC*1.3 segs=6 rings=4
16box plate on=chest at=(0, .25*S, .3*S) size=(.16, .2, .04)*S round=.02 color=brass
17box keyhole on=plate at=(0, .05, .025) size=(.03, .07, .02) round=.01 color=inkDark
18
19// the gold inside, under the lid
20puff gold on=chest at=(0, .5*S, 0) r=(.4, .1, .25)*S color=goldC under=marigold*.9 segs=20 rings=8
21cyl coin x5 on=gold ring=40 at=(.2*S, .08, 0) rot=(20, 0, 15) h=.02 r=.06 color=goldC cap=marigold segs=10
22ball gem on=gold at=(-.12*S, .1, .06) r=(.07, .06, .07)*S color=gemC panels=6 segs=6 rings=4
23
24// coins spilled on the floor in front
25cyl spill x3 on=chest at=(0, -.05, .44*S) row=(.17, .003, .03) rot=(0, i*40, 0) h=.02 r=.065 color=goldC cap=marigold segs=12
26
27// the domed lid, hinged at the back edge
28box hinge on=chest at=(0, .5*S, -.27*S) size=(.9, .03, .05)*S round=.01 color=bandC joint
29box lid on=hinge at=(0, 0, .29*S) size=(.94, .14, .62)*S round=.05 bev=2 color=woodC
30ball dome on=lid at=(0, .13*S, 0) r=(.46, .17, .3)*S half stripes=[woodC woodC*.86] panels=5 color=woodC segs=28 rings=10
31box lstrap x2 on=lid at=(0, .006, 0) row=(.6, 0, 0)*S size=(.08, .16, .64)*S round=.02 color=bandC
32torus band x2 on=dome at=(0, 0, 0) row=(.6, 0, 0)*S rot=(0, 0, 90) R=.3*S r=.025 arc=180 scale=(1, 1.02, 1.03) color=bandC segs=16 sides=5
33
34fx open: sparkle on=gold at=top+(0, .15, 0) n=8 spread=.3
35anim open: hinge rx keys=[0:0 .5:-115 .7:-100 1:-105] hz=.8 once
36