Playground
From kaiju-2 · Compiles in your browser · $0
CtrlShiftS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
asset kaiju "Crystal-back kaiju" complexity=10// a 40 m family-friendly city boss: a pear-shaped upright reptile on two stumpy pillar legs with huge// planted feet, a fat dragging tail, a giant round head with a pale snout, beetle brows, an overbite// of friendly fangs and corner tusks; crystal plates run from the back of the head down the spine to a// glowing tail spike, every plate tipped with a glow crystal; a glowing chest core in a dark rim;// banded belly plates. Seeds pick the colourway, the plate shape, single or double plate rows and the horns.// proportionslet S = 37..43let PS = int(0..2.999)let PH = sel(PS, .13, .085, .15)*Slet PR = sel(PS, .055, .08, .04)*Slet PSEG = sel(PS, 4, 8, 5)let DR = chance(.5)let HS = int(0..2.999)// colourways: reef, volcano, amethyst, jungle, frostlet CW = int(0..4.999)let mainC = sel(CW, teal, cherry, grape, leafPaint, cobalt)let bellyC = sel(CW, cream, honey, peach, lemon, white)let bellyD = bellyC*.82let plateC = sel(CW, aqua, tangerine, lilac, mint, sky)let glowA = sel(CW, sunflower, lemon, bubblegum, aqua, mint)let glowB = mix(glowA, white, .55)let darkC = sel(CW, navy, plum, plum, bottle, navy)let hornC = mix(bellyC, white, .3)// body: the root bone, a pear-shaped trunk with a banded bellylathe body at=(0, .22*S, 0) h=.52*S r=.24*S prof=[0:.85 .25:1 .6:.9 1:.6] color=mainC segs=40 rings=24 jointball belly on=body at=(0, .17*S, .14*S) r=(.16, .19, .11)*S color=bellyC bands=[0:bellyC .2:bellyD .23:bellyC .42:bellyD .45:bellyC .64:bellyD .67:bellyC .86:bellyD .89:bellyC] segs=28 rings=20// legs: stumpy pillars with fat thighs and huge planted feetlimb leg on=body at=(.135*S, .06*S, 0) mirror len=.17*S r=(.1, .085)*S color=mainC segs=20 jointball thigh on=leg at=(0, -.04*S, 0) r=(.12, .12, .13)*S color=mainC segs=24 rings=16ball foot on=leg at=end+(0, -.11*S, .035*S) r=(.115, .09, .15)*S half bands=[0:darkC .14:mainC] color=mainC segs=28 rings=14 joint// tail: seven links shrinking back to the groundball tail x7 on=body at=(0, .12*S, -.17*S) chain=(0, -.065*S, -.13*S) scale=.85 r=(.15, .14, .18)*S color=mainC segs=24 rings=16 joint// head: a big round head with a snout and a hinged pale jawball head on=body at=(0, .6*S, .06*S) r=(.17, .15, .17)*S color=mainC segs=40 rings=28 jointball snout on=head at=(0, -.03*S, .13*S) r=(.11, .085, .11)*S color=mainC segs=28 rings=16ball jaw on=head at=(0, -.05*S, -.02*S) r=.03*S color=mainC segs=6 rings=4 jointball chin on=jaw at=(0, -.045*S, .1*S) r=(.14, .055, .12)*S color=bellyC segs=28 rings=16ball tongue on=chin at=(0, .036*S, .01*S) r=(.085, .03, .075)*S color=berryRed segs=14 rings=8// arms: short and stout, with three-claw handsball shoulder on=body at=(.17*S, .38*S, .06*S) mirror r=.075*S color=mainC segs=20 rings=12limb arm on=body at=(.17*S, .38*S, .06*S) mirror len=.15*S r=(.06, .05)*S tilt=20 roll=18 color=mainC segs=16 jointball hand on=arm at=end r=.06*S color=mainC segs=16 rings=10cone claw x3 on=hand row=(.034*S, 0, 0) at=(0, -.04*S, .025*S) tilt=150 h=.035*S r=.014*S color=hornC segs=6cone toe x3 on=foot row=(.064*S, 0, 0) at=(0, .03*S, .11*S) tilt=80 h=.05*S r=.026*S color=hornC segs=8// chest core: a glowing banded orb in a dark rimball core on=body at=(0, .4*S, .17*S) r=.055*S color=glowA bands=[0:glowA .45:glowB .8:white] ink=glow segs=18 rings=12 jointtorus corerim on=body at=(0, .4*S, .175*S) rot=(90, 0, 0) R=.062*S r=.016*S color=darkC segs=28 sides=8// face: big eyes, beetle brows, nostrilsface look on=head eyes=round:4|happy mouth=smile size=.24 spacing=30 eyeY=24 mouthY=-60 mouthW=.3 iris=glowAball brow on=head at=(.07*S, .105*S, .105*S) mirror roll=12 r=(.065, .025, .04)*S color=darkC segs=14 rings=8ball nostril on=snout surf=(14, 35) mirror lift=-.008*S r=.016*S color=darkC segs=8 rings=5// friendly fangs: an overbite row and two corner tuskscone fang x4 on=snout row=(.046*S, 0, 0) at=(0, -.05*S, .07*S) tilt=180 h=.05*S r=.018*S color=white segs=8cone tusk on=chin at=(.115*S, .02*S, .04*S) mirror h=.05*S r=.022*S color=white segs=8// horns: swept back, rhino nose, or a crystal crowncone horn on=head surf=(42, 48) mirror lift=-.02*S h=.11*S r=.035*S bend=-35 color=hornC segs=10 if=HS==0cone nosehorn on=snout surf=(0, 45) lift=-.01*S h=.075*S r=.032*S bend=-15 color=hornC segs=10 if=HS==1cone nub on=head surf=(38, 52) mirror lift=-.015*S h=.05*S r=.025*S color=hornC segs=8 if=HS==1cone crown x3 on=head surf=(-35+t*70, 62) lift=-.01*S h=(.09-abs(t-.5)*.06)*S r=.022*S color=plateC segs=5 if=HS==2// crystal back plates: a single centre row or a double row, each with a glow tipcone plate x4..6 on=body if=DR==0 at=(0, (.17+t*.3)*S, -(.215-t*.075)*S) tilt=-(60-t*35) scale=1.15-abs(t-.5)*.5 h=PH r=PR*.4 depth=2.5 segs=PSEG color=plateC jointcone tip on=plate at=(0, PH*.58, 0) h=PH*.44 r=PR*.4*.46 depth=2.5 segs=PSEG color=glowA bands=[.5:glowB] ink=glow jointcone plateL x3..5 on=body if=DR at=(.055*S, (.17+t*.3)*S, -(.21-t*.075)*S) mirror tilt=-(60-t*35) roll=-14 scale=1.1-abs(t-.5)*.5 h=PH r=PR*.4 depth=2.5 segs=PSEG color=plateC jointcone tipL on=plateL at=(0, PH*.58, 0) h=PH*.44 r=PR*.4*.46 depth=2.5 segs=PSEG color=glowA bands=[.5:glowB] ink=glow jointcone hplate x3 on=head at=(0, sel(i, .035, .086, .12)*S, -sel(i, .148, .117, .072)*S) tilt=-sel(i, 70, 48, 25) scale=sel(i, .7, .8, .72) h=PH r=PR*.4 depth=2.5 segs=PSEG color=plateC jointcone htip on=hplate at=(0, PH*.58, 0) h=PH*.44 r=PR*.4*.46 depth=2.5 segs=PSEG color=glowA bands=[.5:glowB] ink=glow jointcone tplate on=tail at=(0, .1*S, 0) tilt=-20 h=PH*.9 r=PR*.4 depth=2.5 segs=PSEG color=plateC jointcone ttip on=tplate at=(0, PH*.9*.58, 0) h=PH*.9*.44 r=PR*.4*.46 depth=2.5 segs=PSEG color=glowA bands=[.5:glowB] ink=glow joint// the glowing tail spike on the last linkcone tailspike on=tail if=i==6 at=(0, .02*S, -.13*S) tilt=-75 h=PH*1.1 r=PR*.35 segs=PSEG color=plateC jointcone stip on=tailspike at=(0, PH*1.1*.55, 0) h=PH*1.1*.47 r=PR*.35*.49 segs=PSEG color=glowA bands=[.5:glowB] ink=glow joint// fx: roar burst, charge build-up at the mouthfx roar: puff on=chin at=(0, .05*S, .14*S) dir=(0, .6, 1) speed=10 spread=20 gravity=-1 size=.03*S grow=3 n=10 hz=.6 color=white color2=glowBfx roar: sparkle on=snout at=front spread=.2*S size=.02*S n=14 hz=1 color=glowA color2=whitefx charge: smoke on=chin at=(0, .04*S, .13*S) dir=(0, .3, 1) speed=2 spread=25 gravity=-1 size=.015*S grow=3 n=10 hz=.5 color=glowA color2=greystonefx charge: sparkle on=snout at=front+(0, -.03*S, .03*S) spread=.08*S size=.012*S n=12 hz=1.5 color=glowA color2=white// idle: breathing, tail sway, slow head look, core glowanim idle: body breathe amp=.012anim idle: tail ry sin amp=8 hz=.25 stagger=.1anim idle: head ry sin amp=15 hz=.12anim idle: head rx sin amp=3 hz=.2 phase=.3anim idle: jaw rx sin amp=3 hz=.3anim idle: core s sin amp=.08 hz=.6anim idle: arm rx sin amp=4 hz=.3 twin=.5// walk: ground-shaking stomp, feet kept flat, tail swinging, plates ripplinganim walk: leg rx sin amp=20 hz=.45 twin=.5anim walk: foot rx sin amp=16 hz=.45 twin=.5 phase=.5anim walk: body py bounce amp=.012*S hz=.9anim walk: body rz sin amp=4 hz=.45anim walk: arm rx sin amp=12 hz=.45 twin=.5 phase=.5anim walk: head rx sin amp=3 hz=.9anim walk: tail ry sin amp=12 hz=.45 stagger=.1anim walk: plate s sin amp=.1 hz=.9 stagger=.15anim walk: plateL s sin amp=.1 hz=.9 stagger=.15anim walk: hplate s sin amp=.1 hz=.9 stagger=.15anim walk: tplate s sin amp=.1 hz=.9 stagger=.12anim walk: core s sin amp=.08 hz=.9// roar: lean back, head up, jaw wide, arms raised, tail lashinganim roar: body rx keys=[0:0 .25:-6 .75:-6 1:0] hz=.35anim roar: leg rx keys=[0:0 .25:6 .75:6 1:0] hz=.35anim roar: head rx keys=[0:0 .25:-28 .75:-28 1:0] hz=.35anim roar: jaw rx keys=[0:0 .25:32 .75:32 1:0] hz=.35anim roar: arm rz keys=[0:0 .25:65 .75:65 1:0] hz=.35anim roar: arm rx keys=[0:0 .25:-50 .75:-50 1:0] hz=.35anim roar: tail ry sin amp=18 hz=1.2 stagger=.1anim roar: tip s sin amp=.2 hz=1.5 stagger=.1anim roar: tipL s sin amp=.2 hz=1.5 stagger=.1anim roar: ttip s sin amp=.2 hz=1.5 stagger=.1// charge: crouch and glare, core and every crystal pulse brighteranim charge: body rx keys=[0:0 1:12] hz=1 onceanim charge: leg rx keys=[0:0 1:-12] hz=1 onceanim charge: head rx keys=[0:0 1:-6] hz=1 onceanim charge: jaw rx keys=[0:0 1:12] hz=1 onceanim charge: arm rx keys=[0:0 1:-30] hz=1 onceanim charge: core s sin amp=.3 hz=2.5anim charge: tip s sin amp=.35 hz=2.5 stagger=.08anim charge: tipL s sin amp=.35 hz=2.5 stagger=.08anim charge: htip s sin amp=.35 hz=2.5 stagger=.08anim charge: ttip s sin amp=.35 hz=2.5 stagger=.08anim charge: stip s sin amp=.4 hz=2.5anim charge: tail ry sin amp=6 hz=2 stagger=.1
Clean: no issues on this seed.
Loading
seed
Shapes— / 640
Triangles— / 48,000
Draw calls— / 8