@zaisma/effects 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/EFFECT-FILES.md +301 -0
  2. package/LICENSE.txt +93 -0
  3. package/README.md +63 -2
  4. package/batches/chunks.js +294 -0
  5. package/batches/marks.js +160 -0
  6. package/batches/ribbons.js +233 -0
  7. package/batches/shared.js +155 -0
  8. package/batches/sprites.js +447 -0
  9. package/batches/warps.js +222 -0
  10. package/budget.js +115 -0
  11. package/debris.js +173 -0
  12. package/emit.js +143 -0
  13. package/flashes.js +113 -0
  14. package/format.js +365 -0
  15. package/index.d.ts +373 -0
  16. package/index.js +1168 -0
  17. package/library/bubbles_rising.json +47 -0
  18. package/library/bullet_impact.json +588 -0
  19. package/library/campfire.json +235 -0
  20. package/library/candle_flame.json +100 -0
  21. package/library/confetti.json +165 -0
  22. package/library/dash_burst.json +73 -0
  23. package/library/debris_glass.json +96 -0
  24. package/library/debris_metal.json +106 -0
  25. package/library/debris_stone.json +106 -0
  26. package/library/debris_wood.json +101 -0
  27. package/library/dust_motes.json +51 -0
  28. package/library/dust_puff.json +49 -0
  29. package/library/electric_sparks.json +175 -0
  30. package/library/embers_drift.json +55 -0
  31. package/library/exhaust_puff.json +62 -0
  32. package/library/explosion_air.json +232 -0
  33. package/library/explosion_large.json +373 -0
  34. package/library/explosion_magic.json +266 -0
  35. package/library/explosion_medium.json +289 -0
  36. package/library/explosion_small.json +289 -0
  37. package/library/explosion_water.json +177 -0
  38. package/library/falling_leaves.json +54 -0
  39. package/library/fire_burst.json +185 -0
  40. package/library/fire_large.json +279 -0
  41. package/library/fireball.json +288 -0
  42. package/library/fireflies.json +51 -0
  43. package/library/firework_burst.json +127 -0
  44. package/library/footstep.json +270 -0
  45. package/library/fountain_spray.json +80 -0
  46. package/library/frost_burst.json +202 -0
  47. package/library/ground_mist.json +50 -0
  48. package/library/ground_slam.json +122 -0
  49. package/library/heat_haze.json +24 -0
  50. package/library/hit_blade.json +150 -0
  51. package/library/hit_block.json +157 -0
  52. package/library/hit_critical.json +293 -0
  53. package/library/hit_heavy.json +211 -0
  54. package/library/hit_light.json +122 -0
  55. package/library/hit_magic.json +114 -0
  56. package/library/impact.json +417 -0
  57. package/library/impact_heavy.json +279 -0
  58. package/library/index.json +464 -0
  59. package/library/jump_puff.json +46 -0
  60. package/library/landing_heavy.json +105 -0
  61. package/library/landing_puff.json +75 -0
  62. package/library/level_up.json +164 -0
  63. package/library/lightning_arc.json +90 -0
  64. package/library/lightning_strike.json +387 -0
  65. package/library/magic_aura.json +127 -0
  66. package/library/magic_bolt.json +107 -0
  67. package/library/magic_bolt_impact.json +181 -0
  68. package/library/magic_cast.json +115 -0
  69. package/library/magic_charge.json +91 -0
  70. package/library/magic_heal.json +123 -0
  71. package/library/magic_shield.json +89 -0
  72. package/library/magic_teleport.json +177 -0
  73. package/library/mark_bullet_hole.json +20 -0
  74. package/library/mark_crack.json +18 -0
  75. package/library/mark_footprint.json +20 -0
  76. package/library/mark_frost.json +18 -0
  77. package/library/mark_puddle.json +18 -0
  78. package/library/mark_scorch.json +18 -0
  79. package/library/mark_slash.json +18 -0
  80. package/library/mark_splat.json +18 -0
  81. package/library/pickup_collect.json +117 -0
  82. package/library/pickup_glow.json +76 -0
  83. package/library/poison_cloud.json +107 -0
  84. package/library/portal.json +328 -0
  85. package/library/shockwave_air.json +71 -0
  86. package/library/shockwave_ground.json +95 -0
  87. package/library/slide_dust.json +48 -0
  88. package/library/smoke_column.json +93 -0
  89. package/library/smoke_puff.json +48 -0
  90. package/library/smoke_screen.json +87 -0
  91. package/library/sparks_burst.json +85 -0
  92. package/library/sparks_fountain.json +93 -0
  93. package/library/sparks_shower.json +89 -0
  94. package/library/splash_large.json +181 -0
  95. package/library/splash_small.json +111 -0
  96. package/library/steam_vent.json +64 -0
  97. package/library/summon_circle.json +494 -0
  98. package/library/swim_splash.json +77 -0
  99. package/library/torch_flame.json +219 -0
  100. package/library/trail_blade.json +39 -0
  101. package/library/trail_blade_fire.json +90 -0
  102. package/library/trail_dash.json +80 -0
  103. package/library/trail_magic.json +94 -0
  104. package/library/trail_projectile.json +31 -0
  105. package/library/trail_smoke.json +125 -0
  106. package/library/warp_pulse.json +22 -0
  107. package/library/warp_ripple.json +23 -0
  108. package/library/water_ripple.json +69 -0
  109. package/library/waterfall_mist.json +95 -0
  110. package/looks.js +162 -0
  111. package/motion.js +145 -0
  112. package/online.d.ts +79 -0
  113. package/online.js +32 -0
  114. package/package.json +69 -4
  115. package/partners.js +255 -0
  116. package/piece.json +415 -0
  117. package/piece.json.js +416 -0
  118. package/server.d.ts +55 -0
  119. package/server.js +26 -0
  120. package/shapes.js +269 -0
  121. package/sync.js +528 -0
  122. package/tables.js +109 -0
  123. package/weather.js +289 -0
@@ -0,0 +1,494 @@
1
+ {
2
+ "effect_format_version_number": 1,
3
+ "name": "summon_circle",
4
+ "summary": "A summoning: a circle of light on the ground with a star turning in it, motes rising, then a flare. Realistic: burning rings, light streaming up, scorched ground.",
5
+ "family": "magic",
6
+ "duration_sec": 2.8,
7
+ "elements": [
8
+ {
9
+ "element_kind": "particles",
10
+ "material": "energy",
11
+ "emit": {
12
+ "burst_count": 1
13
+ },
14
+ "move": {
15
+ "speed_m_per_sec": 0
16
+ },
17
+ "fade": {
18
+ "life_sec": 2.4,
19
+ "life_variation_pct": 0,
20
+ "size_over_life_m": [
21
+ 0.4,
22
+ 3.2,
23
+ 3.2,
24
+ 3.6
25
+ ],
26
+ "size_variation_pct": 0,
27
+ "colors_over_life": [
28
+ "#ffd0a0",
29
+ "#ff7040"
30
+ ],
31
+ "opacity_over_life_pct": [
32
+ 0,
33
+ 90,
34
+ 90,
35
+ 0
36
+ ],
37
+ "glow_pct": 240,
38
+ "facing_kind": "ground"
39
+ },
40
+ "shape": "ring",
41
+ "look_names": [
42
+ "cartoon",
43
+ "glowing",
44
+ "faceted"
45
+ ]
46
+ },
47
+ {
48
+ "element_kind": "particles",
49
+ "material": "energy",
50
+ "emit": {
51
+ "burst_count": 1
52
+ },
53
+ "move": {
54
+ "speed_m_per_sec": 0
55
+ },
56
+ "fade": {
57
+ "life_sec": 2.4,
58
+ "life_variation_pct": 0,
59
+ "size_over_life_m": [
60
+ 0.2,
61
+ 2.5,
62
+ 2.5,
63
+ 2.9
64
+ ],
65
+ "size_variation_pct": 0,
66
+ "colors_over_life": [
67
+ "#ffe0b0",
68
+ "#ff5030"
69
+ ],
70
+ "opacity_over_life_pct": [
71
+ 0,
72
+ 80,
73
+ 80,
74
+ 0
75
+ ],
76
+ "glow_pct": 240,
77
+ "facing_kind": "ground",
78
+ "spin_deg_per_sec": 50
79
+ },
80
+ "shape": "star",
81
+ "look_names": [
82
+ "cartoon",
83
+ "glowing",
84
+ "faceted"
85
+ ]
86
+ },
87
+ {
88
+ "element_kind": "particles",
89
+ "material": "energy",
90
+ "emit": {
91
+ "burst_count": 1
92
+ },
93
+ "move": {
94
+ "speed_m_per_sec": 0
95
+ },
96
+ "fade": {
97
+ "life_sec": 2.4,
98
+ "life_variation_pct": 0,
99
+ "size_over_life_m": [
100
+ 2.6,
101
+ 3.2,
102
+ 3.2,
103
+ 3.3
104
+ ],
105
+ "size_variation_pct": 0,
106
+ "colors_over_life": [
107
+ "#ff9a50",
108
+ "#ff4a18"
109
+ ],
110
+ "opacity_over_life_pct": [
111
+ 0,
112
+ 100,
113
+ 100,
114
+ 0
115
+ ],
116
+ "glow_pct": 130,
117
+ "facing_kind": "ground"
118
+ },
119
+ "shape": "ring",
120
+ "look_names": [
121
+ "realistic"
122
+ ]
123
+ },
124
+ {
125
+ "element_kind": "particles",
126
+ "material": "energy",
127
+ "emit": {
128
+ "burst_count": 1
129
+ },
130
+ "move": {
131
+ "speed_m_per_sec": 0
132
+ },
133
+ "fade": {
134
+ "life_sec": 2.4,
135
+ "life_variation_pct": 0,
136
+ "size_over_life_m": [
137
+ 2.8,
138
+ 2.6,
139
+ 2.6,
140
+ 2.7
141
+ ],
142
+ "size_variation_pct": 0,
143
+ "colors_over_life": [
144
+ "#ffc080",
145
+ "#ff6a28"
146
+ ],
147
+ "opacity_over_life_pct": [
148
+ 0,
149
+ 80,
150
+ 90,
151
+ 0
152
+ ],
153
+ "glow_pct": 120,
154
+ "facing_kind": "ground"
155
+ },
156
+ "shape": "ring",
157
+ "look_names": [
158
+ "realistic"
159
+ ]
160
+ },
161
+ {
162
+ "element_kind": "particles",
163
+ "material": "energy",
164
+ "emit": {
165
+ "burst_count": 1
166
+ },
167
+ "move": {
168
+ "speed_m_per_sec": 0
169
+ },
170
+ "fade": {
171
+ "life_sec": 2.4,
172
+ "life_variation_pct": 0,
173
+ "size_over_life_m": [
174
+ 0.6,
175
+ 2.3,
176
+ 2.3,
177
+ 2.4
178
+ ],
179
+ "size_variation_pct": 0,
180
+ "colors_over_life": [
181
+ "#ffb070",
182
+ "#e83a10"
183
+ ],
184
+ "opacity_over_life_pct": [
185
+ 0,
186
+ 75,
187
+ 85,
188
+ 0
189
+ ],
190
+ "glow_pct": 110,
191
+ "facing_kind": "ground",
192
+ "spin_deg_per_sec": 35
193
+ },
194
+ "shape": "star",
195
+ "look_names": [
196
+ "realistic"
197
+ ]
198
+ },
199
+ {
200
+ "element_kind": "particles",
201
+ "material": "glow",
202
+ "emit": {
203
+ "burst_count": 1
204
+ },
205
+ "move": {
206
+ "speed_m_per_sec": 0
207
+ },
208
+ "fade": {
209
+ "life_sec": 2.4,
210
+ "life_variation_pct": 0,
211
+ "size_over_life_m": [
212
+ 1,
213
+ 3.6,
214
+ 3.8
215
+ ],
216
+ "size_variation_pct": 0,
217
+ "colors_over_life": [
218
+ "#ff6a20",
219
+ "#c02a08"
220
+ ],
221
+ "opacity_over_life_pct": [
222
+ 0,
223
+ 30,
224
+ 40,
225
+ 0
226
+ ],
227
+ "glow_pct": 100,
228
+ "facing_kind": "ground"
229
+ },
230
+ "look_names": [
231
+ "realistic"
232
+ ]
233
+ },
234
+ {
235
+ "element_kind": "particles",
236
+ "material": "energy",
237
+ "emit": {
238
+ "per_sec": 45,
239
+ "emit_duration_sec": 2.1,
240
+ "from_kind": "ring",
241
+ "from_radius_m": 1.6,
242
+ "is_from_edge": true
243
+ },
244
+ "move": {
245
+ "direction_kind": "up",
246
+ "spread_deg": 4,
247
+ "speed_m_per_sec": 3.2,
248
+ "speed_variation_pct": 40,
249
+ "drag_per_sec": 0.6
250
+ },
251
+ "fade": {
252
+ "life_sec": 0.55,
253
+ "life_variation_pct": 30,
254
+ "size_over_life_m": [
255
+ 0.05,
256
+ 0.03
257
+ ],
258
+ "colors_over_life": [
259
+ "#ffe0b0",
260
+ "#ff7a30"
261
+ ],
262
+ "opacity_over_life_pct": [
263
+ 0,
264
+ 90,
265
+ 0
266
+ ],
267
+ "glow_pct": 220,
268
+ "facing_kind": "velocity",
269
+ "streak_duration_sec": 0.22
270
+ },
271
+ "look_names": [
272
+ "realistic"
273
+ ]
274
+ },
275
+ {
276
+ "element_kind": "warp",
277
+ "warp_kind": "haze",
278
+ "life_sec": 2.1,
279
+ "radius_over_life_m": [
280
+ 1.4,
281
+ 1.8
282
+ ],
283
+ "strength_over_life_pct": [
284
+ 0,
285
+ 50,
286
+ 70
287
+ ],
288
+ "look_names": [
289
+ "realistic"
290
+ ],
291
+ "minimum_quality_level": "medium"
292
+ },
293
+ {
294
+ "element_kind": "particles",
295
+ "material": "magic",
296
+ "emit": {
297
+ "per_sec": 30,
298
+ "emit_duration_sec": 2,
299
+ "from_kind": "ring",
300
+ "from_radius_m": 1.5,
301
+ "is_from_edge": true
302
+ },
303
+ "move": {
304
+ "direction_kind": "up",
305
+ "speed_m_per_sec": 1.3,
306
+ "speed_variation_pct": 50,
307
+ "swirl_deg_per_sec": 100
308
+ },
309
+ "fade": {
310
+ "life_sec": 1.2,
311
+ "life_variation_pct": 30,
312
+ "size_over_life_m": [
313
+ 0.05,
314
+ 0.12,
315
+ 0.03
316
+ ],
317
+ "colors_over_life": [
318
+ "#fff0c0",
319
+ "#ff9050",
320
+ "#ff4020"
321
+ ],
322
+ "opacity_over_life_pct": [
323
+ 0,
324
+ 100,
325
+ 0
326
+ ],
327
+ "glow_pct": 280
328
+ }
329
+ },
330
+ {
331
+ "element_kind": "particles",
332
+ "material": "glow",
333
+ "emit": {
334
+ "burst_count": 1
335
+ },
336
+ "move": {
337
+ "speed_m_per_sec": 0
338
+ },
339
+ "fade": {
340
+ "life_sec": 0.35,
341
+ "life_variation_pct": 0,
342
+ "size_over_life_m": [
343
+ 0.8,
344
+ 4,
345
+ 2.2
346
+ ],
347
+ "size_variation_pct": 0,
348
+ "colors_over_life": [
349
+ "#ffffff",
350
+ "#ffb070",
351
+ "#ff4020"
352
+ ],
353
+ "opacity_over_life_pct": [
354
+ 100,
355
+ 60,
356
+ 0
357
+ ],
358
+ "glow_pct": 150
359
+ },
360
+ "start_delay_sec": 2.1
361
+ },
362
+ {
363
+ "element_kind": "particles",
364
+ "material": "energy",
365
+ "emit": {
366
+ "burst_count": 22,
367
+ "from_kind": "ring",
368
+ "from_radius_m": 0.9
369
+ },
370
+ "move": {
371
+ "direction_kind": "up",
372
+ "speed_m_per_sec": 11,
373
+ "speed_variation_pct": 40,
374
+ "drag_per_sec": 2
375
+ },
376
+ "fade": {
377
+ "life_sec": 0.6,
378
+ "life_variation_pct": 30,
379
+ "size_over_life_m": [
380
+ 0.1,
381
+ 0.03
382
+ ],
383
+ "colors_over_life": [
384
+ "#ffffff",
385
+ "#ffb060",
386
+ "#ff4020"
387
+ ],
388
+ "opacity_over_life_pct": [
389
+ 100,
390
+ 100,
391
+ 0
392
+ ],
393
+ "glow_pct": 320,
394
+ "facing_kind": "velocity",
395
+ "streak_duration_sec": 0.12
396
+ },
397
+ "start_delay_sec": 2.1
398
+ },
399
+ {
400
+ "element_kind": "particles",
401
+ "material": "smoke",
402
+ "emit": {
403
+ "burst_count": 8,
404
+ "from_kind": "ring",
405
+ "from_radius_m": 1.4
406
+ },
407
+ "move": {
408
+ "direction_kind": "up",
409
+ "speed_m_per_sec": 1.4,
410
+ "speed_variation_pct": 45,
411
+ "drag_per_sec": 2.5,
412
+ "gravity_pct": -4,
413
+ "wind_pct": 100,
414
+ "turbulence_m": 0.3,
415
+ "turbulence_per_sec": 0.8
416
+ },
417
+ "fade": {
418
+ "life_sec": 2,
419
+ "life_variation_pct": 30,
420
+ "size_over_life_m": [
421
+ 0.5,
422
+ 1.4,
423
+ 2
424
+ ],
425
+ "size_variation_pct": 30,
426
+ "colors_over_life": [
427
+ "#5a4a44",
428
+ "#8a8480"
429
+ ],
430
+ "opacity_over_life_pct": [
431
+ 0,
432
+ 45,
433
+ 0
434
+ ],
435
+ "spin_deg_per_sec": 25
436
+ },
437
+ "start_delay_sec": 2.1,
438
+ "look_names": [
439
+ "realistic"
440
+ ]
441
+ },
442
+ {
443
+ "element_kind": "mark",
444
+ "shape": "scorch",
445
+ "size_m": 3.4,
446
+ "start_delay_sec": 2.1,
447
+ "look_names": [
448
+ "realistic"
449
+ ]
450
+ },
451
+ {
452
+ "element_kind": "flash",
453
+ "color": "#ff8050",
454
+ "strength_lux": 12,
455
+ "radius_m": 8,
456
+ "duration_sec": 2.1,
457
+ "strength_over_life_pct": [
458
+ 0,
459
+ 60,
460
+ 100
461
+ ],
462
+ "offset_m": [
463
+ 0,
464
+ 0.6,
465
+ 0
466
+ ]
467
+ },
468
+ {
469
+ "element_kind": "flash",
470
+ "color": "#ffb080",
471
+ "strength_lux": 40,
472
+ "radius_m": 12,
473
+ "duration_sec": 0.4,
474
+ "strength_over_life_pct": [
475
+ 100,
476
+ 45,
477
+ 0
478
+ ],
479
+ "offset_m": [
480
+ 0,
481
+ 1,
482
+ 0
483
+ ],
484
+ "start_delay_sec": 2.1
485
+ },
486
+ {
487
+ "element_kind": "shake",
488
+ "strength_pct": 16,
489
+ "duration_sec": 0.25,
490
+ "radius_m": 12,
491
+ "start_delay_sec": 2.1
492
+ }
493
+ ]
494
+ }
@@ -0,0 +1,77 @@
1
+ {
2
+ "effect_format_version_number": 1,
3
+ "name": "swim_splash",
4
+ "summary": "Someone moving through water: rings spreading from them and drops flicked up.",
5
+ "family": "character",
6
+ "is_looping": true,
7
+ "duration_sec": 1,
8
+ "importance": "low",
9
+ "elements": [
10
+ {
11
+ "element_kind": "particles",
12
+ "material": "water",
13
+ "emit": {
14
+ "per_sec": 3
15
+ },
16
+ "move": {
17
+ "speed_m_per_sec": 0
18
+ },
19
+ "fade": {
20
+ "life_sec": 1,
21
+ "life_variation_pct": 10,
22
+ "size_over_life_m": [
23
+ 0.3,
24
+ 1.5
25
+ ],
26
+ "size_variation_pct": 15,
27
+ "colors_over_life": [
28
+ "#eef6ff"
29
+ ],
30
+ "opacity_over_life_pct": [
31
+ 60,
32
+ 25,
33
+ 0
34
+ ],
35
+ "facing_kind": "ground"
36
+ },
37
+ "shape": "ring"
38
+ },
39
+ {
40
+ "element_kind": "particles",
41
+ "material": "water",
42
+ "emit": {
43
+ "burst_count": 0,
44
+ "per_sec": 14,
45
+ "from_kind": "ring",
46
+ "from_radius_m": 0.25
47
+ },
48
+ "move": {
49
+ "direction_kind": "up",
50
+ "spread_deg": 45,
51
+ "speed_m_per_sec": 1.8,
52
+ "speed_variation_pct": 55,
53
+ "gravity_pct": 100
54
+ },
55
+ "fade": {
56
+ "life_sec": 0.45,
57
+ "life_variation_pct": 35,
58
+ "size_over_life_m": [
59
+ 0.035,
60
+ 0.025
61
+ ],
62
+ "size_variation_pct": 45,
63
+ "colors_over_life": [
64
+ "#e4f2ff",
65
+ "#b0d4f0"
66
+ ],
67
+ "opacity_over_life_pct": [
68
+ 90,
69
+ 90,
70
+ 0
71
+ ],
72
+ "facing_kind": "velocity",
73
+ "streak_duration_sec": 0.04
74
+ }
75
+ }
76
+ ]
77
+ }