• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2   "MaxCount": 4000,
3   "Drawable": {
4      "Type": "SkCircleDrawable",
5      "Radius": 3
6   },
7   "Code": [
8      "void effectUpdate(inout Effect effect) {",
9      "  effect.rate = (sin(radians(effect.age * 720)) + 0.7) * 200;",
10      "}",
11      "",
12      "void spawn(inout Particle p) {",
13      "  p.lifetime = 6;",
14      "  float a = radians(rand(p.seed) * 360);",
15      "  float2 ofs = float2(cos(a), sin(a)) * 40;",
16      "  p.pos += ofs;",
17      "  p.vel = ofs;",
18      "  p.scale = 0.5;",
19      "}",
20      ""
21   ],
22   "Bindings": []
23}