Crystal kaiju · celworld
seed

Crystal kaiju

kaiju-3 v1Made by APIc10
Open in Playground

v1 cost

$1.20

API, priced from the call usage.

Time
9m 15s
The run, with the maths
All 1 version$1.20

Budget

c10 · 145 lines
Shapes105 / 640
Triangles21,392 / 48,000
Draw calls8 / 8
States
walk · roar · charge
Used in
No scene yet
Made
1asset kaiju "Crystal kaiju" complexity=10
2// Original 40 m kaiju boss: a heavy upright reptile with a big friendly-fierce head, brow ridges,
3// a toothy jaw with two proud lower tusks, cream belly plates, a glowing chest core, and rows of
4// crystal plates (glowing banded tips) from the head crest down a long drooping tail.
5// Seeds change the colourway (5), plate count, plate shape and size, horn style and head size.
6// States: idle, walk (stomp), roar, charge.
7
8// proportions and style genes
9let way = int(0..4)
10let sh = int(0..2)
11let hornStyle = int(0..2)
12let HS = .94..1.1
13let PW = .9..1.25
14let PH = .9..1.3
15let TL = .92..1.06
16let Y0 = 19.7
17let psg = sel(sh, 4, 6, 5)
18let PHt = 3.8*PH
19let PR = 1.7*PW
20
21// colourways: skin, belly, plates, glow tip and horn colour
22let skinC = sel(way, grape, teal, tomato, lime, cobalt)
23let bellyC = sel(way, peach, cream, cream, cream, sunflower)
24let plateC = sel(way, tangerine, coral, navy, grape, tomato)
25let glowA = sel(way, lemon, sunflower, aqua, tangerine, lemon)
26let glowB = sel(way, white, cream, white, lemon, white)
27let hornC = cream:3|white
28let skinD = skinC*.8
29let plateHi = plateC*1.15
30
31// body: the root bone, a big round chest and belly
32ball body at=(0, Y0, 0) r=(7.5, 8.5, 6.5) color=skinC under=skinD segs=32 rings=20 joint
33ball belly on=body surf=(0, -8) upright lift=-2.4 r=(4.7, 6.0, 3.4) color=bellyC*.86 segs=24 rings=14 joint
34ball bplate x5 on=belly surf=(0, 28-i*18) r=(3.9-abs(28-i*18)*.03, .75, .8) color=bellyC segs=12 rings=7
35
36// thick legs with big planted feet (the shin capsule is short so its rounded end stays inside the foot)
37limb thigh on=body at=(4.7, -5.5, .3) mirror len=8 r=(3.7, 3.0) color=skinC segs=16 joint
38limb shin on=thigh at=(0, -7.5, .7) len=3.4 r=(3.0, 2.6) bands=[.7:bellyC] color=skinC segs=16 joint
39ball foot on=shin at=(0, -5.2, 1.2) r=(3.1, 1.5, 4.3) color=skinD segs=20 rings=12 joint
40cone toe x3 on=foot surf=(-34+i*34, -4) lift=-.5 h=1.9 r=.95 r2=.15 color=hornC segs=8
41
42// the long heavy tail: a root bone, then seven shrinking links drooping toward the ground
43ball tailRoot on=body at=(0, -3.5, -5.2) rot=(-28, 0, 0) r=(4.2, 3.8, 4.8) color=skinC under=bellyC segs=22 rings=14 joint
44ball tail x7 on=tailRoot at=(0, 0, -4.2*TL) chain=(0, 0, -4.2*TL) scale=.91 r=(3.9, 3.5, 4.4) color=skinC under=bellyC segs=20 rings=12 joint
45
46// head: big, with a snout, a hinged cream jaw and two lower tusks
47ball head on=body at=(0, 9.4, 2.6) scale=HS r=(6, 5.5, 6.2) color=skinC under=skinD segs=32 rings=20 joint
48ball snout on=head at=(0, -2.4, 5.0) r=(4.2, 2.6, 3.6) color=skinC segs=24 rings=14
49ball nostril on=snout mirror surf=(20, 52) upright lift=-.15 r=.55 color=inkDark ink=none segs=8 rings=5
50ball jaw on=head at=(0, -4.4, 1.0) r=1.2 color=bellyC segs=10 rings=6 joint
51ball jawF on=jaw at=(0, -.4, 3.8) r=(4.9, 1.5, 4.6) color=bellyC segs=24 rings=12
52ball tongue on=jawF at=(0, 1.3, .2) r=(2.8, .55, 3.2) color=coral segs=14 rings=8
53cone tooth x7 on=jawF surf=(-72+i*24, 58) lift=-.25 h=1.3 r=.55 r2=.1 color=white segs=6
54cone tusk on=jawF mirror surf=(80, 22) upright lift=-.3 h=2.6 r=.75 r2=.12 color=white segs=8
55
56// arms: short and sturdy, with clawed hands
57limb arm on=body at=(5.5, 4.4, 2.0) mirror len=5.4 r=(2.0, 1.6) roll=12 color=skinC segs=14 joint
58ball hand on=arm at=end-(0, .4, 0) r=(1.9, 1.7, 1.9) color=skinC segs=14 rings=9
59cone claw x3 on=hand surf=(-40+i*40, -50) lift=-.3 h=1.6 r=.55 r2=.08 color=hornC segs=8
60
61// brow ridges, cheek spikes and the horns (three styles)
62ball brow on=head mirror surf=(36, 34) upright lift=-.2 rot=(0, 0, 14) r=(2.2, .85, 1.5) color=skinD segs=14 rings=8
63cone cheek x3 on=head mirror surf=(86, 16-i*16) lift=-.5 h=2.6 r=.9 r2=.12 color=hornC segs=8
64cone hornA on=head mirror if=hornStyle==0 surf=(40, 58) upright lift=-.6 rot=(-24, 0, -14) h=5.5 r=1.5 r2=.25 color=hornC segs=10
65cone hornN on=head if=hornStyle==1 surf=(0, 66) upright lift=-.5 rot=(14, 0, 0) h=3.6 r=1.4 r2=.2 color=hornC segs=10
66cone hornB on=head mirror if=hornStyle==1 surf=(44, 62) upright lift=-.5 rot=(-18, 0, -12) h=2.6 r=1.0 r2=.2 color=hornC segs=8
67tube hornR on=head mirror if=hornStyle==2 at=(2.6, 3.4, -.6) pts=[0,-.6,0 .8,1.4,-.5 2.6,2.8,-1 4.4,3.1,-.6 5.5,2.1,.2] r=(1.3, .3) smooth sides=8 color=hornC detail=.8
68
69// crystal plates: back, shoulders, head crest, tail (each with a glowing banded tip)
70lathe plateB x5..7 on=body surf=(180, -2+t*57) lift=-.7 scale=1.12-abs(t-.5)*.5 h=PHt r=PR prof=[0:.55 .4:1 1:0] linear panels=psg segs=psg depth=.8 color=plateC bands=[.55:plateHi] joint
71cone tipB on=plateB at=(0, PHt*.76, 0) h=PHt*.5 r=PR*.36 r2=PR*.04 panels=psg segs=psg depth=.8 color=glowA bands=[.5:glowB] ink=glow
72lathe plateS on=body mirror surf=(70, 55) lift=-.7 scale=.8 h=PHt r=PR prof=[0:.55 .4:1 1:0] linear panels=psg segs=psg depth=.8 color=plateC bands=[.55:plateHi]
73cone tipS on=plateS at=(0, PHt*.76, 0) h=PHt*.5 r=PR*.36 r2=PR*.04 panels=psg segs=psg depth=.8 color=glowA bands=[.5:glowB] ink=glow
74lathe plateH x3..4 on=head surf=(180, 26+t*46) lift=-.6 scale=.75 h=PHt r=PR prof=[0:.55 .4:1 1:0] linear panels=psg segs=psg depth=.8 color=plateC bands=[.55:plateHi] joint
75cone tipH on=plateH at=(0, PHt*.76, 0) h=PHt*.5 r=PR*.36 r2=PR*.04 panels=psg segs=psg depth=.8 color=glowA bands=[.5:glowB] ink=glow
76lathe plateR on=tailRoot surf=(0, 90) lift=-.6 h=PHt*.9 r=PR*.95 prof=[0:.55 .4:1 1:0] linear panels=psg segs=psg depth=.8 color=plateC bands=[.55:plateHi]
77cone tipR on=plateR at=(0, PHt*.9*.76, 0) h=PHt*.45 r=PR*.34 r2=PR*.04 panels=psg segs=psg depth=.8 color=glowA bands=[.5:glowB] ink=glow
78lathe plateT on=tail surf=(0, 90) lift=-.6 h=PHt*.85 r=PR*.9 prof=[0:.55 .4:1 1:0] linear panels=psg segs=psg depth=.8 color=plateC bands=[.55:plateHi] joint
79cone tipT on=plateT at=(0, PHt*.85*.76, 0) h=PHt*.42 r=PR*.32 r2=PR*.04 panels=psg segs=psg depth=.8 color=glowA bands=[.5:glowB] ink=glow
80
81// glowing chest core
82ball core on=body surf=(0, 38) upright lift=-.6 r=(2.0, 2.0, 1.4) color=glowA bands=[.55:glowB] ink=glow segs=16 rings=10 joint
83
84// the face: big round eyes under the brow ridges
85face look on=head eyes=round mouth=none spacing=25 eyeY=10 size=.2 detail=.8
86
87// fx: stomp dust, roar blast, charge sparkles at the mouth
88fx walk: puff on=foot at=(0, -1.2, 0) speed=2 spread=80 gravity=-.4 n=6 hz=1 size=.8 grow=3 color=rockSand color2=cream
89fx roar: puff on=jaw at=(0, .8, 8.6) dir=(0, .1, 1) speed=8 spread=18 gravity=-.6 n=9 hz=1 size=1 grow=3.2 color=white color2=cream
90fx roar: sparkle on=jaw at=(0, .8, 9.5) spread=2.8 n=16 hz=1.5 size=.45 color=glowA color2=white
91fx charge: sparkle on=jaw at=(0, .8, 10) spread=2 n=18 hz=1.4 size=.5 color=glowA color2=white
92
93// idle: breathe, sway, slow head look, tail sway, plates shimmer, core glow
94anim belly breathe amp=.04 hz=.3
95anim body sway amp=.8 hz=.2
96anim head ry sin amp=14 hz=.1
97anim head nod amp=2.5 hz=.25
98anim jaw rx sin amp=1.5 hz=.3
99anim tailRoot ry sin amp=10 hz=.25
100anim tail ry sin amp=8 hz=.25 stagger=.1
101anim arm rx sin amp=4 hz=.3 twin=.5
102anim plateB rx sin amp=3 hz=.5 stagger=.09
103anim plateH rx sin amp=3 hz=.5 stagger=.09
104anim plateT rx sin amp=4 hz=.5 stagger=.09
105anim core s sin amp=.06 hz=.5
106
107// walk: ground-shaking stomp, planted feet, tail swing, plates ripple
108anim walk: thigh rx keys=[0:0 .25:-24 .5:0 .75:20 1:0] hz=.6 twin=.5
109anim walk: shin rx keys=[0:0 .15:30 .35:38 .5:0 .75:0 1:0] hz=.6 twin=.5
110anim walk: foot rx keys=[0:0 .25:-8 .5:0 .75:-20 1:0] hz=.6 twin=.5
111anim walk: body py bounce amp=.35 hz=1.2
112anim walk: body rz sin amp=2 hz=.6
113anim walk: head ry sin amp=6 hz=.6
114anim walk: arm rx sin amp=22 hz=.6 twin=.5
115anim walk: tailRoot ry sin amp=18 hz=.6
116anim walk: tail ry sin amp=10 hz=.6 stagger=.12
117anim walk: plateB rx sin amp=8 hz=1.2 stagger=.1
118anim walk: plateH rx sin amp=8 hz=1.2 stagger=.1
119anim walk: plateT rx sin amp=8 hz=1.2 stagger=.1
120
121// roar: head back, jaw open and chomping, arms up, plates flare
122anim roar: head rx keys=[0:0 .2:-30 .8:-30 1:0] hz=.5
123anim roar: head ry sin amp=5 hz=3
124anim roar: jaw rx keys=[0:0 .2:34 .5:26 .65:34 .8:30 1:0] hz=.5
125anim roar: arm rz keys=[0:0 .2:135 .8:135 1:0] hz=.5
126anim roar: tailRoot rx keys=[0:0 .2:12 .8:12 1:0] hz=.5
127anim roar: plateB s keys=[0:0 .2:.3 .8:.3 1:0] hz=.5
128anim roar: plateH s keys=[0:0 .2:.3 .8:.3 1:0] hz=.5
129anim roar: plateT s keys=[0:0 .2:.3 .8:.3 1:0] hz=.5
130anim roar: core s keys=[0:0 .2:.35 .8:.35 1:0] hz=.5
131
132// charge: crouch and hold, head low, jaw ajar, core and plates pulse brighter
133anim charge: thigh rx keys=[0:0 1:-25] hz=.8 once
134anim charge: shin rx keys=[0:0 1:45] hz=.8 once
135anim charge: foot rx keys=[0:0 1:-20] hz=.8 once
136anim charge: body py keys=[0:0 1:-1] hz=.8 once
137anim charge: body pz keys=[0:0 1:-1.4] hz=.8 once
138anim charge: head rx keys=[0:0 1:10] hz=.8 once
139anim charge: jaw rx keys=[0:0 1:16] hz=.8 once
140anim charge: arm rx keys=[0:0 1:-35] hz=.8 once
141anim charge: tailRoot rx keys=[0:0 1:10] hz=.8 once
142anim charge: core s sin amp=.4 hz=2.5
143anim charge: plateB s sin amp=.25 hz=2.5 stagger=.07
144anim charge: plateH s sin amp=.25 hz=2.5 stagger=.07
145anim charge: plateT s sin amp=.25 hz=2.5 stagger=.07
146