2019-09-12 20:25:52 +00:00
|
|
|
{
|
|
|
|
"MaxCount": 4000,
|
|
|
|
"Drawable": {
|
|
|
|
"Type": "SkCircleDrawable",
|
|
|
|
"Radius": 3
|
|
|
|
},
|
2021-02-01 19:47:30 +00:00
|
|
|
"Code": [
|
2019-09-12 20:25:52 +00:00
|
|
|
"void effectUpdate(inout Effect effect) {",
|
|
|
|
" effect.rate = (sin(radians(effect.age * 720)) + 0.7) * 200;",
|
|
|
|
"}",
|
2021-02-01 19:47:30 +00:00
|
|
|
"",
|
2019-09-12 20:25:52 +00:00
|
|
|
"void spawn(inout Particle p) {",
|
|
|
|
" p.lifetime = 6;",
|
2020-02-10 18:45:22 +00:00
|
|
|
" float a = radians(rand(p.seed) * 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": []
|
|
|
|
}
|