Fox cub · celworld
seed

Fox cub

fox_cub v1Hand-writtenc4
Open in PlaygroundExplain this script

How v1 was made

Hand-written

Written by hand in .cel.

Script
32 lines

Budget

c4 · 32 lines
Shapes17 / 70
Triangles4,088 / 6,000
Draw calls3 / 4
States
walk
Used in
Made
1asset fox_cub "Fox cub" complexity=4
2// a chibi fox cub: a round body on four short legs, a big head with a pointed muzzle and tall ears,
3// a fat brush tail with a pale tip; it breathes and wags at rest, trots when a game says walk
4let S = .9..1.1
5let coat = tangerine:3|copper:2|honey|cream:.5
6let pale = cream:2|white
7let sock = walnut:2|redwood|iron
8let earS = .9..1.15
9
10// body: the root bone, standing on four legs
11ball body at=(0, .27*S, 0) r=(.16, .15, .22)*S color=coat under=pale segs=20 rings=12 joint
12limb leg x2 on=body row=(0, 0, .25*S) at=(.085*S, -.02*S, 0) mirror len=.2*S r=(.052, .044)*S bands=[.6:sock] color=coat segs=10 joint
13
14// head and muzzle
15ball head on=body at=(0, .16*S, .2*S) r=(.165, .145, .145)*S color=coat under=pale segs=20 rings=12 joint
16ball cheek on=head surf=(0, -26) upright lift=-.07*S r=(.11, .07, .08)*S color=pale segs=12 rings=7
17cone muzzle on=head surf=(0, -12) lift=-.03*S h=.11*S r=.06*S r2=.022*S color=coat segs=12
18ball nose on=muzzle at=end r=.028*S color=inkDark ink=thin segs=8 rings=5
19face look on=head eyes=round:3|happy mouth=cat spacing=30 eyeY=14 mouthY=-36 mouthW=.3 size=.2 detail=.6
20cone ear on=head surf=(34, 52) lift=-.03*S mirror h=.15*S*earS r=.065*S r2=.008*S depth=.55 color=coat segs=10
21cone inner on=ear at=(0, .01*S, .022*S) h=.11*S*earS r=.04*S r2=.006*S depth=.4 color=pale segs=8
22
23// the brush tail: three links that curl up, a pale tip
24ball tail x3 on=body at=(0, .02*S, -.2*S) chain=(0, .07*S, -.07*S) rot=(-28, 0, 0) scale=1.08 r=(.07, .07, .09)*S color=coat segs=12 rings=7 joint
25ball tip on=tail at=(0, .1*S, -.06*S) r=(.07, .08, .08)*S color=pale segs=12 rings=7 if=i==2
26
27// idle: breathe, wag, look about; walk: a trot (diagonal pairs) with a bob
28anim body breathe
29anim tail wag stagger=.12
30anim head sway amp=5 hz=.3
31anim walk: leg gait amp=30 hz=1.8 stagger=.5
32anim walk: body bob amp=.02 hz=3.6
33