Boulderbun · celworld
seed

Boulderbun

boulderbun v1Made by APIc4
Open in Playground

v1 cost

$0.097

API, priced from the call usage.

Time
37s
The run, with the maths
All 1 version$0.097

Budget

c4 · 47 lines
Shapes16 / 70
Triangles4,376 / 6,000
Draw calls3 / 4
States
idle · thump
Used in
No scene yet
Made
1asset boulderbun "Boulderbun" complexity=4
2// a chibi rock rabbit: a faceted boulder body, a big round stone head with huge eyes,
3// two tall crystal ears (the hero feature), crystal chips down the back, big hind feet for thumping.
4// colourways: 0 grey stone + aqua crystal, 1 sandstone + pink crystal, rare shiny: lilac stone + gold crystal
5let S = .92..1.08
6let earS = .9..1.15
7let k = max(int(0..1), chance(.1)*2)
8let rockC = sel(k, greystone, sandstone, lilac)
9let paleC = sel(k, cream, cream, white)
10let gemC = sel(k, aqua, flowerPink, sunflower)
11let noseC = sel(k, bubblegum, coral, aqua)
12
13// body: the root bone, a faceted boulder with a pale belly
14ball body at=(0, .18*S, 0) r=(.2, .18, .19)*S color=rockC under=paleC panels=8 noise=.03 segs=20 rings=12 joint
15
16// head: big and round, sitting forward on the body
17ball head on=body at=(0, .2*S, .06*S) r=(.17, .15, .15)*S color=rockC panels=9 noise=.02 segs=20 rings=12 joint
18ball muzzle on=head surf=(0, -22) upright lift=-.06*S r=(.08, .05, .05)*S color=paleC segs=12 rings=7
19ball nose on=head surf=(0, -10) lift=-.012*S r=(.028, .022, .022)*S color=noseC segs=8 rings=5 joint
20face look on=head eyes=round mouth=cat size=.27 spacing=30 eyeY=12 mouthY=-32 mouthW=.28 blush iris=sel(k, teal, plum, cobalt) detail=.8
21
22// crystal ears: tall faceted shards, sunk into the head
23cone ear on=head surf=(26, 58) lift=-.03*S mirror h=.26*S*earS r=.06*S r2=.012*S depth=.6 panels=5 segs=5 color=gemC joint
24cone shard on=head surf=(0, 62) lift=-.02*S h=.07*S r=.03*S panels=4 segs=4 color=gemC*1.08
25
26// crystal chips down the back
27cone chip x3 on=body at=(0, .1*S, -.13*S) row=(.08*S, 0, 0) rot=(-50, 0, 0) h=.09*S r=.035*S panels=4 segs=4 color=gemC
28
29// big hind feet, small front paws, a pale puff tail
30ball foot on=body at=(.12*S, -.13*S, .04*S) mirror r=(.075, .05, .12)*S color=rockC under=paleC panels=6 segs=12 rings=8 joint
31ball paw on=body at=(.08*S, -.11*S, .16*S) mirror r=(.05, .045, .05)*S color=paleC segs=10 rings=6
32ball tail on=body surf=(180, -5) upright lift=-.03*S r=.065*S color=paleC segs=10 rings=7
33
34// thump: dust puffs burst from the stomping feet
35fx thump: puff on=foot at=bottom speed=.6 spread=75 gravity=-.15 size=.04 grow=2.2 hz=1.2 n=6 color=sandstone color2=cream
36
37// idle: the nose twitches, ears sway, the boulder breathes
38anim idle: nose s keys=[0:0 .1:.18 .2:0 .3:.18 .4:0 1:0] hz=1.4
39anim idle: nose py keys=[0:0 .1:.006 .2:0 .3:.006 .4:0 1:0] hz=1.4
40anim idle: ear rz sin amp=5 hz=.4 twin=.5
41anim idle: body breathe
42anim idle: head sway amp=4 hz=.3
43// thump: hind feet lift and slam down, body rocks back then jolts, ears flick up
44anim thump: foot py keys=[0:0 .3:.07 .42:0 1:0] hz=1.2
45anim thump: foot rx keys=[0:0 .3:-25 .42:0 1:0] hz=1.2
46anim thump: body rx keys=[0:0 .3:-8 .45:3 .6:0 1:0] hz=1.2
47anim thump: ear rz keys=[0:0 .42:0 .5:-12 .7:0 1:0] hz=1.2
48