2019-09-12 20:25:52 +00:00
|
|
|
{
|
|
|
|
"MaxCount": 4000,
|
|
|
|
"Drawable": {
|
|
|
|
"Type": "SkCircleDrawable",
|
|
|
|
"Radius": 3
|
|
|
|
},
|
|
|
|
"EffectCode": [
|
|
|
|
"void effectUpdate(inout Effect effect) {",
|
|
|
|
" effect.rate = (sin(radians(effect.age * 720)) + 0.7) * 200;",
|
|
|
|
"}",
|
|
|
|
""
|
|
|
|
],
|
|
|
|
"Code": [
|
|
|
|
"void spawn(inout Particle p) {",
|
|
|
|
" p.lifetime = 6;",
|
|
|
|
" float a = radians(rand * 360);",
|
2019-10-15 14:27:59 +00:00
|
|
|
" float2 ofs = float2(cos(a), sin(a)) * 40;",
|
|
|
|
" p.pos += ofs;",
|
|
|
|
" p.vel = ofs;",
|
2019-09-12 20:25:52 +00:00
|
|
|
" p.scale = 0.5;",
|
|
|
|
"}",
|
|
|
|
""
|
|
|
|
],
|
|
|
|
"Bindings": []
|
|
|
|
}
|