@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,279 @@
1
+ {
2
+ "effect_format_version_number": 1,
3
+ "name": "impact_heavy",
4
+ "summary": "Something heavy coming down hard: a ring of dust, grit thrown, and a shake. On metal a shower of sparks, in water a column of spray.",
5
+ "family": "hits",
6
+ "duration_sec": 1,
7
+ "elements": [
8
+ {
9
+ "element_kind": "particles",
10
+ "material": "dust",
11
+ "emit": {
12
+ "burst_count": 12,
13
+ "from_kind": "ring",
14
+ "from_radius_m": 0.25,
15
+ "is_from_edge": true
16
+ },
17
+ "move": {
18
+ "direction_kind": "outward",
19
+ "speed_m_per_sec": 3.4,
20
+ "speed_variation_pct": 35,
21
+ "drag_per_sec": 3.4,
22
+ "wind_pct": 60
23
+ },
24
+ "fade": {
25
+ "life_sec": 0.9,
26
+ "life_variation_pct": 25,
27
+ "size_over_life_m": [
28
+ 0.2,
29
+ 0.7,
30
+ 0.9
31
+ ],
32
+ "size_variation_pct": 30,
33
+ "colors_over_life": [
34
+ "#b8b0a4",
35
+ "#d0c8bc"
36
+ ],
37
+ "opacity_over_life_pct": [
38
+ 0,
39
+ 45,
40
+ 0
41
+ ],
42
+ "spin_deg_per_sec": 25
43
+ },
44
+ "surface_kinds": [
45
+ "stone",
46
+ "concrete",
47
+ "carpet",
48
+ "dirt",
49
+ "gravel",
50
+ "sand",
51
+ "grass",
52
+ "mud",
53
+ "wood",
54
+ "flesh",
55
+ "glass",
56
+ "ice",
57
+ "snow"
58
+ ]
59
+ },
60
+ {
61
+ "element_kind": "debris",
62
+ "material": "stone",
63
+ "count": 5,
64
+ "from_radius_m": 0.2,
65
+ "direction_kind": "up",
66
+ "spread_deg": 60,
67
+ "speed_m_per_sec": 3.2,
68
+ "size_m": 0.06,
69
+ "life_sec": 2.2,
70
+ "colors": [
71
+ "#8a857c",
72
+ "#6c6862"
73
+ ],
74
+ "surface_kinds": [
75
+ "stone",
76
+ "concrete",
77
+ "carpet",
78
+ "dirt",
79
+ "gravel",
80
+ "sand",
81
+ "grass",
82
+ "mud"
83
+ ]
84
+ },
85
+ {
86
+ "element_kind": "debris",
87
+ "material": "wood",
88
+ "count": 5,
89
+ "from_radius_m": 0.2,
90
+ "direction_kind": "up",
91
+ "spread_deg": 60,
92
+ "speed_m_per_sec": 3.2,
93
+ "size_m": 0.08,
94
+ "life_sec": 2.2,
95
+ "colors": [
96
+ "#b08a58",
97
+ "#8a6a40"
98
+ ],
99
+ "surface_kinds": [
100
+ "wood"
101
+ ]
102
+ },
103
+ {
104
+ "element_kind": "particles",
105
+ "material": "spark",
106
+ "emit": {
107
+ "burst_count": 26
108
+ },
109
+ "move": {
110
+ "direction_kind": "along",
111
+ "speed_m_per_sec": 8,
112
+ "speed_variation_pct": 60,
113
+ "drag_per_sec": 1.6,
114
+ "gravity_pct": 100,
115
+ "spread_deg": 80
116
+ },
117
+ "fade": {
118
+ "life_sec": 0.5,
119
+ "life_variation_pct": 50,
120
+ "size_over_life_m": [
121
+ 0.06,
122
+ 0.025
123
+ ],
124
+ "size_variation_pct": 40,
125
+ "colors_over_life": [
126
+ "#ffffff",
127
+ "#ffe8b0",
128
+ "#ff9a30"
129
+ ],
130
+ "opacity_over_life_pct": [
131
+ 100,
132
+ 100,
133
+ 0
134
+ ],
135
+ "glow_pct": 380,
136
+ "facing_kind": "velocity",
137
+ "streak_duration_sec": 0.05
138
+ },
139
+ "surface_kinds": [
140
+ "metal"
141
+ ]
142
+ },
143
+ {
144
+ "element_kind": "flash",
145
+ "color": "#ffe8c0",
146
+ "strength_lux": 8,
147
+ "radius_m": 4,
148
+ "duration_sec": 0.1,
149
+ "strength_over_life_pct": [
150
+ 100,
151
+ 45,
152
+ 0
153
+ ],
154
+ "surface_kinds": [
155
+ "metal"
156
+ ]
157
+ },
158
+ {
159
+ "element_kind": "particles",
160
+ "material": "water",
161
+ "emit": {
162
+ "burst_count": 30,
163
+ "from_kind": "ring",
164
+ "from_radius_m": 0.25
165
+ },
166
+ "move": {
167
+ "direction_kind": "along",
168
+ "spread_deg": 35,
169
+ "speed_m_per_sec": 5.5,
170
+ "speed_variation_pct": 55,
171
+ "gravity_pct": 100
172
+ },
173
+ "fade": {
174
+ "life_sec": 0.9,
175
+ "life_variation_pct": 35,
176
+ "size_over_life_m": [
177
+ 0.07,
178
+ 0.05
179
+ ],
180
+ "size_variation_pct": 45,
181
+ "colors_over_life": [
182
+ "#e4f2ff",
183
+ "#b0d4f0"
184
+ ],
185
+ "opacity_over_life_pct": [
186
+ 90,
187
+ 90,
188
+ 0
189
+ ],
190
+ "facing_kind": "velocity",
191
+ "streak_duration_sec": 0.04
192
+ },
193
+ "surface_kinds": [
194
+ "water",
195
+ "mud"
196
+ ]
197
+ },
198
+ {
199
+ "element_kind": "particles",
200
+ "material": "water",
201
+ "emit": {
202
+ "burst_count": 1
203
+ },
204
+ "move": {
205
+ "speed_m_per_sec": 0
206
+ },
207
+ "fade": {
208
+ "life_sec": 0.8,
209
+ "life_variation_pct": 0,
210
+ "size_over_life_m": [
211
+ 0.25,
212
+ 2.6
213
+ ],
214
+ "size_variation_pct": 0,
215
+ "colors_over_life": [
216
+ "#f0f8ff"
217
+ ],
218
+ "opacity_over_life_pct": [
219
+ 70,
220
+ 35,
221
+ 0
222
+ ],
223
+ "facing_kind": "along"
224
+ },
225
+ "shape": "ring",
226
+ "surface_kinds": [
227
+ "water"
228
+ ]
229
+ },
230
+ {
231
+ "element_kind": "particles",
232
+ "material": "dust",
233
+ "emit": {
234
+ "burst_count": 1
235
+ },
236
+ "move": {
237
+ "speed_m_per_sec": 0
238
+ },
239
+ "fade": {
240
+ "life_sec": 0.3,
241
+ "life_variation_pct": 0,
242
+ "size_over_life_m": [
243
+ 0.3,
244
+ 2.4
245
+ ],
246
+ "size_variation_pct": 0,
247
+ "colors_over_life": [
248
+ "#e0d8cc"
249
+ ],
250
+ "opacity_over_life_pct": [
251
+ 70,
252
+ 35,
253
+ 0
254
+ ],
255
+ "facing_kind": "along"
256
+ },
257
+ "shape": "ring",
258
+ "surface_kinds": [
259
+ "stone",
260
+ "concrete",
261
+ "carpet",
262
+ "dirt",
263
+ "gravel",
264
+ "sand",
265
+ "grass",
266
+ "mud",
267
+ "wood",
268
+ "metal",
269
+ "snow"
270
+ ]
271
+ },
272
+ {
273
+ "element_kind": "shake",
274
+ "strength_pct": 16,
275
+ "duration_sec": 0.2,
276
+ "radius_m": 9
277
+ }
278
+ ]
279
+ }