@zaisma/effects 0.0.0-stage → 1.0.1

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,232 @@
1
+ {
2
+ "effect_format_version_number": 1,
3
+ "name": "explosion_air",
4
+ "summary": "A blast in the air, with nothing under it: a fireball, a smoke ball and sparks in every direction.",
5
+ "family": "explosions",
6
+ "importance": "high",
7
+ "elements": [
8
+ {
9
+ "element_kind": "particles",
10
+ "material": "glow",
11
+ "emit": {
12
+ "burst_count": 1
13
+ },
14
+ "move": {
15
+ "speed_m_per_sec": 0
16
+ },
17
+ "fade": {
18
+ "life_sec": 0.2,
19
+ "life_variation_pct": 0,
20
+ "size_over_life_m": [
21
+ 1.5,
22
+ 7,
23
+ 4
24
+ ],
25
+ "size_variation_pct": 0,
26
+ "colors_over_life": [
27
+ "#fff0c8",
28
+ "#ffb050"
29
+ ],
30
+ "opacity_over_life_pct": [
31
+ 100,
32
+ 60,
33
+ 0
34
+ ],
35
+ "glow_pct": 150
36
+ }
37
+ },
38
+ {
39
+ "element_kind": "particles",
40
+ "material": "glow",
41
+ "emit": {
42
+ "burst_count": 1
43
+ },
44
+ "move": {
45
+ "speed_m_per_sec": 0
46
+ },
47
+ "fade": {
48
+ "life_sec": 0.22,
49
+ "life_variation_pct": 0,
50
+ "size_over_life_m": [
51
+ 1.2,
52
+ 5,
53
+ 4.4
54
+ ],
55
+ "size_variation_pct": 0,
56
+ "colors_over_life": [
57
+ "#ffffff",
58
+ "#ffd040"
59
+ ],
60
+ "opacity_over_life_pct": [
61
+ 100,
62
+ 100,
63
+ 0
64
+ ],
65
+ "glow_pct": 120,
66
+ "spin_deg_per_sec": 1
67
+ },
68
+ "shape": "star",
69
+ "look_names": [
70
+ "cartoon"
71
+ ]
72
+ },
73
+ {
74
+ "element_kind": "particles",
75
+ "material": "fire",
76
+ "emit": {
77
+ "burst_count": 26,
78
+ "from_kind": "sphere",
79
+ "from_radius_m": 0.35
80
+ },
81
+ "move": {
82
+ "direction_kind": "outward",
83
+ "speed_m_per_sec": 6.5,
84
+ "speed_variation_pct": 55,
85
+ "drag_per_sec": 4.5,
86
+ "gravity_pct": -18,
87
+ "turbulence_m": 0.25,
88
+ "turbulence_per_sec": 2
89
+ },
90
+ "fade": {
91
+ "life_sec": 0.65,
92
+ "life_variation_pct": 35,
93
+ "size_over_life_m": [
94
+ 0.6,
95
+ 1.7,
96
+ 2.1
97
+ ],
98
+ "size_variation_pct": 35,
99
+ "colors_over_life": [
100
+ "#fff3c4",
101
+ "#ffb030",
102
+ "#ff5a10",
103
+ "#4a1a08"
104
+ ],
105
+ "opacity_over_life_pct": [
106
+ 100,
107
+ 95,
108
+ 55,
109
+ 0
110
+ ],
111
+ "glow_pct": 170,
112
+ "spin_deg_per_sec": 50
113
+ }
114
+ },
115
+ {
116
+ "element_kind": "particles",
117
+ "material": "smoke",
118
+ "emit": {
119
+ "burst_count": 18,
120
+ "from_kind": "sphere",
121
+ "from_radius_m": 0.5
122
+ },
123
+ "move": {
124
+ "direction_kind": "outward",
125
+ "speed_m_per_sec": 3.6,
126
+ "speed_variation_pct": 45,
127
+ "drag_per_sec": 2.4,
128
+ "gravity_pct": -9,
129
+ "wind_pct": 100,
130
+ "turbulence_m": 0.5,
131
+ "turbulence_per_sec": 0.7
132
+ },
133
+ "fade": {
134
+ "life_sec": 2.5,
135
+ "life_variation_pct": 30,
136
+ "size_over_life_m": [
137
+ 0.9,
138
+ 2.6,
139
+ 3.5
140
+ ],
141
+ "size_variation_pct": 30,
142
+ "colors_over_life": [
143
+ "#5a4030",
144
+ "#3a3532",
145
+ "#55524f"
146
+ ],
147
+ "opacity_over_life_pct": [
148
+ 0,
149
+ 75,
150
+ 45,
151
+ 0
152
+ ],
153
+ "spin_deg_per_sec": 25
154
+ },
155
+ "start_delay_sec": 0.06
156
+ },
157
+ {
158
+ "element_kind": "particles",
159
+ "material": "spark",
160
+ "emit": {
161
+ "burst_count": 44
162
+ },
163
+ "move": {
164
+ "direction_kind": "random",
165
+ "speed_m_per_sec": 13,
166
+ "speed_variation_pct": 60,
167
+ "drag_per_sec": 1.2,
168
+ "gravity_pct": 100
169
+ },
170
+ "fade": {
171
+ "life_sec": 0.9,
172
+ "life_variation_pct": 50,
173
+ "size_over_life_m": [
174
+ 0.08,
175
+ 0.035
176
+ ],
177
+ "size_variation_pct": 40,
178
+ "colors_over_life": [
179
+ "#fff6d8",
180
+ "#ffb040",
181
+ "#ff5a10"
182
+ ],
183
+ "opacity_over_life_pct": [
184
+ 100,
185
+ 100,
186
+ 0
187
+ ],
188
+ "glow_pct": 380,
189
+ "facing_kind": "velocity",
190
+ "streak_duration_sec": 0.05
191
+ }
192
+ },
193
+ {
194
+ "element_kind": "flash",
195
+ "color": "#ffc070",
196
+ "strength_lux": 70,
197
+ "radius_m": 16,
198
+ "duration_sec": 0.4,
199
+ "strength_over_life_pct": [
200
+ 100,
201
+ 45,
202
+ 0
203
+ ],
204
+ "offset_m": [
205
+ 0,
206
+ 0.9,
207
+ 0
208
+ ]
209
+ },
210
+ {
211
+ "element_kind": "warp",
212
+ "warp_kind": "ripple",
213
+ "life_sec": 0.45,
214
+ "radius_over_life_m": [
215
+ 0.4,
216
+ 8
217
+ ],
218
+ "strength_over_life_pct": [
219
+ 80,
220
+ 0
221
+ ],
222
+ "minimum_quality_level": "medium",
223
+ "thickness_pct": 28
224
+ },
225
+ {
226
+ "element_kind": "shake",
227
+ "strength_pct": 50,
228
+ "duration_sec": 0.44999999999999996,
229
+ "radius_m": 28
230
+ }
231
+ ]
232
+ }
@@ -0,0 +1,373 @@
1
+ {
2
+ "effect_format_version_number": 1,
3
+ "name": "explosion_large",
4
+ "summary": "A big blast: a towering fireball, a smoke column, falling embers, heavy rubble and a long shake.",
5
+ "family": "explosions",
6
+ "importance": "high",
7
+ "duration_sec": 2,
8
+ "elements": [
9
+ {
10
+ "element_kind": "particles",
11
+ "material": "glow",
12
+ "emit": {
13
+ "burst_count": 1
14
+ },
15
+ "move": {
16
+ "speed_m_per_sec": 0
17
+ },
18
+ "fade": {
19
+ "life_sec": 0.2,
20
+ "life_variation_pct": 0,
21
+ "size_over_life_m": [
22
+ 2.8499999999999996,
23
+ 13.299999999999999,
24
+ 7.6
25
+ ],
26
+ "size_variation_pct": 0,
27
+ "colors_over_life": [
28
+ "#fff0c8",
29
+ "#ffb050"
30
+ ],
31
+ "opacity_over_life_pct": [
32
+ 100,
33
+ 60,
34
+ 0
35
+ ],
36
+ "glow_pct": 150
37
+ }
38
+ },
39
+ {
40
+ "element_kind": "particles",
41
+ "material": "glow",
42
+ "emit": {
43
+ "burst_count": 1
44
+ },
45
+ "move": {
46
+ "speed_m_per_sec": 0
47
+ },
48
+ "fade": {
49
+ "life_sec": 0.22,
50
+ "life_variation_pct": 0,
51
+ "size_over_life_m": [
52
+ 2.28,
53
+ 9.5,
54
+ 8.36
55
+ ],
56
+ "size_variation_pct": 0,
57
+ "colors_over_life": [
58
+ "#ffffff",
59
+ "#ffd040"
60
+ ],
61
+ "opacity_over_life_pct": [
62
+ 100,
63
+ 100,
64
+ 0
65
+ ],
66
+ "glow_pct": 120,
67
+ "spin_deg_per_sec": 1
68
+ },
69
+ "shape": "star",
70
+ "look_names": [
71
+ "cartoon"
72
+ ]
73
+ },
74
+ {
75
+ "element_kind": "particles",
76
+ "material": "fire",
77
+ "emit": {
78
+ "burst_count": 37,
79
+ "from_kind": "sphere",
80
+ "from_radius_m": 0.6649999999999999
81
+ },
82
+ "move": {
83
+ "direction_kind": "outward",
84
+ "speed_m_per_sec": 12.35,
85
+ "speed_variation_pct": 55,
86
+ "drag_per_sec": 4.5,
87
+ "gravity_pct": -18,
88
+ "turbulence_m": 0.475,
89
+ "turbulence_per_sec": 2
90
+ },
91
+ "fade": {
92
+ "life_sec": 0.7849999999999999,
93
+ "life_variation_pct": 35,
94
+ "size_over_life_m": [
95
+ 1.14,
96
+ 3.23,
97
+ 3.9899999999999998
98
+ ],
99
+ "size_variation_pct": 35,
100
+ "colors_over_life": [
101
+ "#fff3c4",
102
+ "#ffb030",
103
+ "#ff5a10",
104
+ "#4a1a08"
105
+ ],
106
+ "opacity_over_life_pct": [
107
+ 100,
108
+ 95,
109
+ 55,
110
+ 0
111
+ ],
112
+ "glow_pct": 170,
113
+ "spin_deg_per_sec": 50
114
+ }
115
+ },
116
+ {
117
+ "element_kind": "particles",
118
+ "material": "smoke",
119
+ "emit": {
120
+ "burst_count": 25,
121
+ "from_kind": "sphere",
122
+ "from_radius_m": 0.95
123
+ },
124
+ "move": {
125
+ "direction_kind": "outward",
126
+ "speed_m_per_sec": 6.84,
127
+ "speed_variation_pct": 45,
128
+ "drag_per_sec": 2.4,
129
+ "gravity_pct": -9,
130
+ "wind_pct": 100,
131
+ "turbulence_m": 0.95,
132
+ "turbulence_per_sec": 0.7
133
+ },
134
+ "fade": {
135
+ "life_sec": 3.31,
136
+ "life_variation_pct": 30,
137
+ "size_over_life_m": [
138
+ 1.71,
139
+ 4.9399999999999995,
140
+ 6.6499999999999995
141
+ ],
142
+ "size_variation_pct": 30,
143
+ "colors_over_life": [
144
+ "#5a4030",
145
+ "#3a3532",
146
+ "#55524f"
147
+ ],
148
+ "opacity_over_life_pct": [
149
+ 0,
150
+ 75,
151
+ 45,
152
+ 0
153
+ ],
154
+ "spin_deg_per_sec": 25
155
+ },
156
+ "start_delay_sec": 0.06
157
+ },
158
+ {
159
+ "element_kind": "particles",
160
+ "material": "spark",
161
+ "emit": {
162
+ "burst_count": 62
163
+ },
164
+ "move": {
165
+ "direction_kind": "random",
166
+ "speed_m_per_sec": 16.6,
167
+ "speed_variation_pct": 60,
168
+ "drag_per_sec": 1.2,
169
+ "gravity_pct": 100
170
+ },
171
+ "fade": {
172
+ "life_sec": 0.9,
173
+ "life_variation_pct": 50,
174
+ "size_over_life_m": [
175
+ 0.08,
176
+ 0.035
177
+ ],
178
+ "size_variation_pct": 40,
179
+ "colors_over_life": [
180
+ "#fff6d8",
181
+ "#ffb040",
182
+ "#ff5a10"
183
+ ],
184
+ "opacity_over_life_pct": [
185
+ 100,
186
+ 100,
187
+ 0
188
+ ],
189
+ "glow_pct": 380,
190
+ "facing_kind": "velocity",
191
+ "streak_duration_sec": 0.05
192
+ }
193
+ },
194
+ {
195
+ "element_kind": "flash",
196
+ "color": "#ffc070",
197
+ "strength_lux": 133,
198
+ "radius_m": 21.4,
199
+ "duration_sec": 0.4,
200
+ "strength_over_life_pct": [
201
+ 100,
202
+ 45,
203
+ 0
204
+ ],
205
+ "offset_m": [
206
+ 0,
207
+ 1.71,
208
+ 0
209
+ ]
210
+ },
211
+ {
212
+ "element_kind": "warp",
213
+ "warp_kind": "ripple",
214
+ "life_sec": 0.45,
215
+ "radius_over_life_m": [
216
+ 0.76,
217
+ 15.2
218
+ ],
219
+ "strength_over_life_pct": [
220
+ 80,
221
+ 0
222
+ ],
223
+ "minimum_quality_level": "medium",
224
+ "thickness_pct": 28
225
+ },
226
+ {
227
+ "element_kind": "shake",
228
+ "strength_pct": 68,
229
+ "duration_sec": 0.585,
230
+ "radius_m": 42.4
231
+ },
232
+ {
233
+ "element_kind": "particles",
234
+ "material": "dust",
235
+ "emit": {
236
+ "burst_count": 1
237
+ },
238
+ "move": {
239
+ "speed_m_per_sec": 0
240
+ },
241
+ "fade": {
242
+ "life_sec": 0.5,
243
+ "life_variation_pct": 0,
244
+ "size_over_life_m": [
245
+ 1.9,
246
+ 19
247
+ ],
248
+ "size_variation_pct": 0,
249
+ "colors_over_life": [
250
+ "#d8c8b0"
251
+ ],
252
+ "opacity_over_life_pct": [
253
+ 70,
254
+ 35,
255
+ 0
256
+ ],
257
+ "facing_kind": "along"
258
+ },
259
+ "shape": "ring"
260
+ },
261
+ {
262
+ "element_kind": "mark",
263
+ "shape": "scorch",
264
+ "size_m": 6.46,
265
+ "life_sec": 40,
266
+ "color": "#16110e",
267
+ "opacity_pct": 85,
268
+ "glow_color": "#ff6a1a",
269
+ "glow_duration_sec": 1.6
270
+ },
271
+ {
272
+ "element_kind": "debris",
273
+ "material": "stone",
274
+ "count": 17,
275
+ "from_radius_m": 0.57,
276
+ "direction_kind": "up",
277
+ "spread_deg": 65,
278
+ "speed_m_per_sec": 11.2,
279
+ "speed_variation_pct": 45,
280
+ "size_m": 0.214,
281
+ "life_sec": 4,
282
+ "colors": [
283
+ "#8a857c",
284
+ "#6c6862",
285
+ "#a39c92"
286
+ ],
287
+ "bounce_effect_name": "dust_puff"
288
+ },
289
+ {
290
+ "element_kind": "particles",
291
+ "material": "smoke",
292
+ "emit": {
293
+ "per_sec": 14,
294
+ "emit_duration_sec": 1.4,
295
+ "from_kind": "ring",
296
+ "from_radius_m": 1.2
297
+ },
298
+ "move": {
299
+ "direction_kind": "up",
300
+ "spread_deg": 14,
301
+ "speed_m_per_sec": 5,
302
+ "speed_variation_pct": 30,
303
+ "drag_per_sec": 0.7,
304
+ "wind_pct": 100,
305
+ "turbulence_m": 0.8,
306
+ "turbulence_per_sec": 0.5
307
+ },
308
+ "fade": {
309
+ "life_sec": 4.5,
310
+ "life_variation_pct": 25,
311
+ "size_over_life_m": [
312
+ 1.6,
313
+ 4.5,
314
+ 6.5
315
+ ],
316
+ "size_variation_pct": 30,
317
+ "colors_over_life": [
318
+ "#5a4030",
319
+ "#3a3532",
320
+ "#55524f"
321
+ ],
322
+ "opacity_over_life_pct": [
323
+ 0,
324
+ 70,
325
+ 40,
326
+ 0
327
+ ],
328
+ "spin_deg_per_sec": 18
329
+ },
330
+ "start_delay_sec": 0.25
331
+ },
332
+ {
333
+ "element_kind": "particles",
334
+ "material": "ember",
335
+ "emit": {
336
+ "burst_count": 40,
337
+ "from_kind": "sphere",
338
+ "from_radius_m": 3
339
+ },
340
+ "move": {
341
+ "direction_kind": "up",
342
+ "spread_deg": 60,
343
+ "speed_m_per_sec": 5,
344
+ "speed_variation_pct": 60,
345
+ "gravity_pct": 35,
346
+ "drag_per_sec": 0.8,
347
+ "wind_pct": 100,
348
+ "turbulence_m": 0.6
349
+ },
350
+ "fade": {
351
+ "life_sec": 3.2,
352
+ "life_variation_pct": 40,
353
+ "size_over_life_m": [
354
+ 0.07,
355
+ 0.03
356
+ ],
357
+ "colors_over_life": [
358
+ "#ffd070",
359
+ "#ff6a1a",
360
+ "#a02808"
361
+ ],
362
+ "opacity_over_life_pct": [
363
+ 100,
364
+ 100,
365
+ 0
366
+ ],
367
+ "glow_pct": 320
368
+ },
369
+ "minimum_quality_level": "medium",
370
+ "start_delay_sec": 0.3
371
+ }
372
+ ]
373
+ }