
Loading
seed
19 statesS spinI inkG seeds
Sproutlet
sproutlet v1Made by APIc4
Budget
c4 · 47 linesShapes16 / 70
Triangles3,900 / 6,000
Draw calls2 / 4
- States
- idle · happy
- Used in
- Mossbrook Town as sprout
- Starter town (hand-written) as sprout
- Made
1asset sproutlet "Sproutlet" complexity=42// a leaf-sprite pocket critter: a round seed body that is also its head, big shiny eyes,3// stubby arms, two short legs on fat feet, a stem with a big two-leaf sprout on top.4// idle: a gentle sway with blinks and leaves rustling; happy: hops with the leaves flapping.5// colourways: garden (common), acorn (common), shiny blossom (rare)6let S = .9..1.17let leafS = .9..1.158let pal = "garden":5|"acorn":4|"shiny":.69let K = (pal=="acorn") + 2*(pal=="shiny")10let bodyC = sel(K, lime, honey, bubblegum)11let bellyC = sel(K, cream, cream, white)12let sproutC = sel(K, leafA, leafPaint, sunflower)13let rimC = sel(K, leafDark, leafB, tangerine)14let stemC = sel(K, stem, oak, coral)15let eyeC = sel(K, walnut, bottle, cobalt)16let footC = sel(K, bottle, walnut, plum)1718// seed body: the root bone (head and body in one)19ball body at=(0, .3*S, 0) r=(.22, .24, .2)*S color=bodyC segs=24 rings=14 joint20ball belly on=body surf=(0, -38) upright lift=-.09*S r=(.15, .12, .09)*S color=bellyC segs=14 rings=821ball nub on=body surf=(180, -20) lift=-.03*S r=(.05, .07, .05)*S color=bodyC segs=10 rings=62223// legs and fat feet, stubby arms24limb leg on=body at=(.095*S, -.17*S, 0) mirror len=.07*S r=(.06, .055)*S color=bodyC segs=10 joint25ball foot on=leg at=(0, -.085*S, .03*S) r=(.075, .045, .095)*S color=footC segs=12 rings=726limb arm on=body at=(.19*S, -.02*S, .02*S) mirror roll=35 len=.08*S r=(.045, .038)*S color=bodyC segs=10 joint2728// the sprout: a stem and two big leaves with a darker rim29cyl stalk on=body at=top+(0, -.02*S, 0) h=.09*S r=.028*S r2=.022*S round=.008 color=stemC segs=8 joint30slab frond on=stalk at=top+(.005*S, -.01*S, 0) mirror roll=28 scale=leafS*S pts=[0,0 .06,.07 .16,.1 .26,.08 .33,.02 .27,-.03 .15,-.045 .05,-.03] t=.03 round=.012 edge=rimC color=sproutC joint31slab bud on=stalk at=top+(0, -.01*S, -.01*S) tilt=-15 scale=S pts=[-.03,0 .03,0 .02,.06 0,.09 -.02,.06] t=.025 round=.01 color=rimC3233// face: big readable eyes, small smile34face look on=body eyes=round mouth=smile size=.24 spacing=26 eyeY=10 mouthY=-12 mouthW=.28 iris=eyeC detail=.735// eyelids hidden in the body, they pop out over the eyes to blink36ball lid on=body surf=(26, 10) mirror lift=-.05*S r=(.065, .03, .065)*S color=bodyC segs=10 rings=5 joint3738// idle: sway, rustle, blink39anim idle: body sway amp=5 hz=.440anim idle: frond rz sin amp=6 hz=.741anim idle: arm rz sin amp=6 hz=.442anim idle: lid py keys=[0:0 .88:0 .93:.055 .98:0 1:0] hz=.343// happy: hop, leaves flapping, arms up44anim happy: body py bounce amp=.09 hz=245anim happy: frond flap amp=35 hz=446anim happy: arm rz keys=[0:20 .5:80 1:20] hz=247anim happy: leg rx sin amp=15 hz=2 twin=.548