Spike trap · celworld
seed

Spike trap

spike_trap v1Agent-madec3
Open in Playground

v1 cost

$0.559est.

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

Output share
1.5k
Time share
53s
The agent session
All 1 version$0.559

Budget

c3 · 22 lines
Shapes28 / 45
Triangles3,088 / 4,500
Draw calls1 / 3
States
spring
Used in
Made
1asset spike_trap "Spike trap" complexity=3 float
2// a floor trap: a square stone plate with a grid of dark holes and a warning-red rim of bolts. A bed
3// of iron spikes hides just under its face; on spring the spikes shoot up, quiver and sink back.
4// The bed sits below the floor at rest, so the asset floats (its hidden spikes go under y = 0).
5let stoneC = greystone:2|granite|rockCool|sandstone
6let rimC = iron:2|copper|brass
7let warnC = tomato:2|marigold
8
9// the plate, its rim and the holes
10box plate size=(1.3, .1, 1.3) round=.03 bev=2 bands=[.6:stoneC*1.08] color=stoneC
11box rim x4 on=plate ring at=(0, .06, .62) size=(1.22, .06, .07) round=.02 color=rimC
12ball bolt x4 on=plate ring ring0=45 at=(.88, .1, 0) r=(.05, .03, .05) color=warnC segs=12 rings=6
13cyl hole x3 on=plate at=(0, .09, 0) row=(0, 0, .36) h=.02 r=.07 color=inkDark segs=16
14cyl holeB x2 on=hole at=(0, 0, 0) row=(.72, 0, 0) h=.02 r=.07 color=inkDark segs=16
15
16// the spike bed: a hidden block under the plate, nine spikes that rise through the holes
17box bed at=(0, -.4, 0) size=(1.0, .06, 1.0) round=.02 color=iron joint
18cone spike x3 on=bed at=(0, .06, 0) row=(0, 0, .36) h=.44 r=.06 color=steel segs=12
19cone spikeB x2 on=spike at=(0, 0, 0) row=(.72, 0, 0) h=.44 r=.06 color=steel segs=12
20
21// spring: up in a snap, a quiver, then down slow
22anim spring: bed py keys=[0:0 .08:.42 .14:.37 .2:.41 .26:.39 .7:.39 1:0] hz=.6
23