@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,279 @@
1
+ {
2
+ "effect_format_version_number": 1,
3
+ "name": "fire_large",
4
+ "summary": "A big fire: a bonfire, a burning wreck. Tall flames, a column of smoke, embers and heat that bends the air.",
5
+ "family": "fire",
6
+ "is_looping": true,
7
+ "duration_sec": 1,
8
+ "importance": "high",
9
+ "elements": [
10
+ {
11
+ "element_kind": "particles",
12
+ "material": "fire",
13
+ "emit": {
14
+ "per_sec": 36,
15
+ "from_kind": "ring",
16
+ "from_radius_m": 0.44799999999999995
17
+ },
18
+ "move": {
19
+ "direction_kind": "up",
20
+ "spread_deg": 8,
21
+ "speed_m_per_sec": 2.2399999999999998,
22
+ "speed_variation_pct": 35,
23
+ "gravity_pct": -6,
24
+ "turbulence_m": 0.11199999999999999,
25
+ "turbulence_per_sec": 2.5,
26
+ "wind_pct": 35
27
+ },
28
+ "fade": {
29
+ "life_sec": 0.5,
30
+ "life_variation_pct": 30,
31
+ "size_over_life_m": [
32
+ 1.26,
33
+ 1.54,
34
+ 0.7
35
+ ],
36
+ "size_variation_pct": 30,
37
+ "colors_over_life": [
38
+ "#fff2a0",
39
+ "#ffc232",
40
+ "#ff7e18"
41
+ ],
42
+ "opacity_over_life_pct": [
43
+ 0,
44
+ 100,
45
+ 100,
46
+ 0
47
+ ],
48
+ "glow_pct": 170,
49
+ "spin_deg_per_sec": 40
50
+ }
51
+ },
52
+ {
53
+ "element_kind": "particles",
54
+ "material": "fire",
55
+ "emit": {
56
+ "per_sec": 32,
57
+ "from_kind": "ring",
58
+ "from_radius_m": 0.5599999999999999
59
+ },
60
+ "move": {
61
+ "direction_kind": "up",
62
+ "spread_deg": 10,
63
+ "speed_m_per_sec": 4.76,
64
+ "speed_variation_pct": 35,
65
+ "gravity_pct": -6,
66
+ "turbulence_m": 0.196,
67
+ "turbulence_per_sec": 3,
68
+ "wind_pct": 35
69
+ },
70
+ "fade": {
71
+ "life_sec": 0.75,
72
+ "life_variation_pct": 30,
73
+ "size_over_life_m": [
74
+ 0.868,
75
+ 0.7,
76
+ 0.11199999999999999
77
+ ],
78
+ "size_variation_pct": 30,
79
+ "colors_over_life": [
80
+ "#fff1b8",
81
+ "#ffb42c",
82
+ "#ff6212",
83
+ "#c02a0a"
84
+ ],
85
+ "opacity_over_life_pct": [
86
+ 0,
87
+ 100,
88
+ 90,
89
+ 0
90
+ ],
91
+ "glow_pct": 170,
92
+ "spin_deg_per_sec": 40
93
+ }
94
+ },
95
+ {
96
+ "element_kind": "particles",
97
+ "material": "glow",
98
+ "emit": {
99
+ "per_sec": 6
100
+ },
101
+ "move": {
102
+ "speed_m_per_sec": 0,
103
+ "is_attached": true
104
+ },
105
+ "fade": {
106
+ "life_sec": 0.5,
107
+ "life_variation_pct": 20,
108
+ "size_over_life_m": [
109
+ 3.08,
110
+ 3.5
111
+ ],
112
+ "size_variation_pct": 10,
113
+ "colors_over_life": [
114
+ "#ff8a2a"
115
+ ],
116
+ "opacity_over_life_pct": [
117
+ 0,
118
+ 24,
119
+ 0
120
+ ],
121
+ "glow_pct": 120
122
+ }
123
+ },
124
+ {
125
+ "element_kind": "particles",
126
+ "material": "fire",
127
+ "emit": {
128
+ "per_sec": 14,
129
+ "from_kind": "ring",
130
+ "from_radius_m": 0.5
131
+ },
132
+ "move": {
133
+ "direction_kind": "up",
134
+ "spread_deg": 8,
135
+ "speed_m_per_sec": 5,
136
+ "speed_variation_pct": 35,
137
+ "gravity_pct": -6,
138
+ "turbulence_m": 0.25,
139
+ "turbulence_per_sec": 3,
140
+ "wind_pct": 35
141
+ },
142
+ "fade": {
143
+ "life_sec": 0.9,
144
+ "life_variation_pct": 30,
145
+ "size_over_life_m": [
146
+ 0.8,
147
+ 0.6,
148
+ 0.1
149
+ ],
150
+ "size_variation_pct": 30,
151
+ "colors_over_life": [
152
+ "#fff1b8",
153
+ "#ffb42c",
154
+ "#ff6212",
155
+ "#c02a0a"
156
+ ],
157
+ "opacity_over_life_pct": [
158
+ 0,
159
+ 100,
160
+ 80,
161
+ 0
162
+ ],
163
+ "glow_pct": 170,
164
+ "spin_deg_per_sec": 40
165
+ },
166
+ "minimum_quality_level": "medium"
167
+ },
168
+ {
169
+ "element_kind": "particles",
170
+ "material": "ember",
171
+ "emit": {
172
+ "per_sec": 18,
173
+ "from_kind": "ring",
174
+ "from_radius_m": 0.8
175
+ },
176
+ "move": {
177
+ "direction_kind": "up",
178
+ "spread_deg": 25,
179
+ "speed_m_per_sec": 2.6,
180
+ "speed_variation_pct": 50,
181
+ "gravity_pct": -8,
182
+ "turbulence_m": 0.35,
183
+ "turbulence_per_sec": 1.4,
184
+ "wind_pct": 80
185
+ },
186
+ "fade": {
187
+ "life_sec": 3,
188
+ "life_variation_pct": 40,
189
+ "size_over_life_m": [
190
+ 0.05,
191
+ 0.025
192
+ ],
193
+ "colors_over_life": [
194
+ "#ffd070",
195
+ "#ff6a1a"
196
+ ],
197
+ "opacity_over_life_pct": [
198
+ 100,
199
+ 100,
200
+ 0
201
+ ],
202
+ "glow_pct": 320
203
+ }
204
+ },
205
+ {
206
+ "element_kind": "particles",
207
+ "material": "smoke",
208
+ "emit": {
209
+ "per_sec": 9,
210
+ "from_kind": "ring",
211
+ "from_radius_m": 0.6
212
+ },
213
+ "move": {
214
+ "direction_kind": "up",
215
+ "spread_deg": 12,
216
+ "speed_m_per_sec": 2.4,
217
+ "speed_variation_pct": 30,
218
+ "drag_per_sec": 0.3,
219
+ "wind_pct": 100,
220
+ "turbulence_m": 0.65,
221
+ "turbulence_per_sec": 0.5
222
+ },
223
+ "fade": {
224
+ "life_sec": 5,
225
+ "life_variation_pct": 25,
226
+ "size_over_life_m": [
227
+ 0.9,
228
+ 2.6,
229
+ 3.8
230
+ ],
231
+ "size_variation_pct": 30,
232
+ "colors_over_life": [
233
+ "#3a3430",
234
+ "#5a5652"
235
+ ],
236
+ "opacity_over_life_pct": [
237
+ 0,
238
+ 0,
239
+ 55,
240
+ 0
241
+ ],
242
+ "spin_deg_per_sec": 20
243
+ },
244
+ "start_delay_sec": 0
245
+ },
246
+ {
247
+ "element_kind": "flash",
248
+ "color": "#ff8a30",
249
+ "strength_lux": 70,
250
+ "radius_m": 16,
251
+ "duration_sec": 1,
252
+ "strength_over_life_pct": [
253
+ 88,
254
+ 100,
255
+ 88
256
+ ],
257
+ "flicker_pct": 30,
258
+ "offset_m": [
259
+ 0,
260
+ 1.2,
261
+ 0
262
+ ]
263
+ },
264
+ {
265
+ "element_kind": "warp",
266
+ "warp_kind": "haze",
267
+ "life_sec": 1,
268
+ "radius_over_life_m": [
269
+ 2.6,
270
+ 2.6
271
+ ],
272
+ "strength_over_life_pct": [
273
+ 45,
274
+ 45
275
+ ],
276
+ "minimum_quality_level": "medium"
277
+ }
278
+ ]
279
+ }
@@ -0,0 +1,288 @@
1
+ {
2
+ "effect_format_version_number": 1,
3
+ "name": "fireball",
4
+ "summary": "A ball of fire in flight, for something that moves: a white-hot core in a burning head, a trail of flames that shrink and redden, smoke and embers left behind.",
5
+ "family": "fire",
6
+ "is_looping": true,
7
+ "duration_sec": 1,
8
+ "elements": [
9
+ {
10
+ "element_kind": "particles",
11
+ "material": "glow",
12
+ "emit": {
13
+ "per_sec": 10
14
+ },
15
+ "move": {
16
+ "speed_m_per_sec": 0,
17
+ "is_attached": true
18
+ },
19
+ "fade": {
20
+ "life_sec": 0.3,
21
+ "life_variation_pct": 0,
22
+ "size_over_life_m": [
23
+ 1.5,
24
+ 1.7
25
+ ],
26
+ "size_variation_pct": 10,
27
+ "colors_over_life": [
28
+ "#ff9a30"
29
+ ],
30
+ "opacity_over_life_pct": [
31
+ 0,
32
+ 35,
33
+ 0
34
+ ],
35
+ "glow_pct": 140
36
+ }
37
+ },
38
+ {
39
+ "element_kind": "particles",
40
+ "material": "fire",
41
+ "emit": {
42
+ "per_sec": 45,
43
+ "from_kind": "sphere",
44
+ "from_radius_m": 0.1
45
+ },
46
+ "move": {
47
+ "direction_kind": "random",
48
+ "speed_m_per_sec": 0.3,
49
+ "is_attached": true
50
+ },
51
+ "fade": {
52
+ "life_sec": 0.22,
53
+ "life_variation_pct": 30,
54
+ "size_over_life_m": [
55
+ 0.6,
56
+ 0.8,
57
+ 0.35
58
+ ],
59
+ "size_variation_pct": 20,
60
+ "colors_over_life": [
61
+ "#fff2a0",
62
+ "#ffc232",
63
+ "#ff7e18"
64
+ ],
65
+ "opacity_over_life_pct": [
66
+ 60,
67
+ 100,
68
+ 0
69
+ ],
70
+ "glow_pct": 190,
71
+ "spin_deg_per_sec": 120,
72
+ "is_upright": false
73
+ }
74
+ },
75
+ {
76
+ "element_kind": "particles",
77
+ "material": "glow",
78
+ "emit": {
79
+ "per_sec": 30
80
+ },
81
+ "move": {
82
+ "speed_m_per_sec": 0,
83
+ "is_attached": true
84
+ },
85
+ "fade": {
86
+ "life_sec": 0.08,
87
+ "life_variation_pct": 0,
88
+ "size_over_life_m": [
89
+ 0.42,
90
+ 0.48
91
+ ],
92
+ "size_variation_pct": 10,
93
+ "colors_over_life": [
94
+ "#ffffff",
95
+ "#fff0b0"
96
+ ],
97
+ "opacity_over_life_pct": [
98
+ 100,
99
+ 100,
100
+ 0
101
+ ],
102
+ "glow_pct": 280
103
+ }
104
+ },
105
+ {
106
+ "element_kind": "particles",
107
+ "material": "energy",
108
+ "emit": {
109
+ "per_sec": 30
110
+ },
111
+ "move": {
112
+ "speed_m_per_sec": 0,
113
+ "is_attached": true
114
+ },
115
+ "fade": {
116
+ "life_sec": 0.08,
117
+ "life_variation_pct": 0,
118
+ "size_over_life_m": [
119
+ 0.5,
120
+ 0.54
121
+ ],
122
+ "size_variation_pct": 0,
123
+ "colors_over_life": [
124
+ "#ffffff",
125
+ "#fff4b0"
126
+ ],
127
+ "opacity_over_life_pct": [
128
+ 100,
129
+ 100,
130
+ 0
131
+ ],
132
+ "glow_pct": 260
133
+ },
134
+ "shape": "disc"
135
+ },
136
+ {
137
+ "element_kind": "particles",
138
+ "material": "fire",
139
+ "emit": {
140
+ "per_sec": 90,
141
+ "from_kind": "sphere",
142
+ "from_radius_m": 0.1
143
+ },
144
+ "move": {
145
+ "direction_kind": "random",
146
+ "speed_m_per_sec": 0.3,
147
+ "drag_per_sec": 2,
148
+ "turbulence_m": 0.08,
149
+ "turbulence_per_sec": 3
150
+ },
151
+ "fade": {
152
+ "life_sec": 0.5,
153
+ "life_variation_pct": 30,
154
+ "size_over_life_m": [
155
+ 0.44,
156
+ 0.3,
157
+ 0.05
158
+ ],
159
+ "size_variation_pct": 25,
160
+ "colors_over_life": [
161
+ "#fff1b8",
162
+ "#ffb42c",
163
+ "#ff6212",
164
+ "#c02a0a"
165
+ ],
166
+ "opacity_over_life_pct": [
167
+ 100,
168
+ 85,
169
+ 0
170
+ ],
171
+ "glow_pct": 170,
172
+ "spin_deg_per_sec": 90,
173
+ "is_upright": false
174
+ }
175
+ },
176
+ {
177
+ "element_kind": "ribbon",
178
+ "life_sec": 0.4,
179
+ "width_over_length_m": [
180
+ 0.3,
181
+ 0.34,
182
+ 0.16,
183
+ 0
184
+ ],
185
+ "colors_over_length": [
186
+ "#fff6d0",
187
+ "#ffa02a",
188
+ "#c02a0a"
189
+ ],
190
+ "opacity_over_length_pct": [
191
+ 35,
192
+ 90,
193
+ 50,
194
+ 0
195
+ ],
196
+ "glow_pct": 240,
197
+ "minimum_step_m": 0.08
198
+ },
199
+ {
200
+ "element_kind": "particles",
201
+ "material": "smoke",
202
+ "emit": {
203
+ "per_sec": 26
204
+ },
205
+ "move": {
206
+ "direction_kind": "random",
207
+ "speed_m_per_sec": 0.35,
208
+ "wind_pct": 100,
209
+ "gravity_pct": -6,
210
+ "turbulence_m": 0.2,
211
+ "turbulence_per_sec": 0.6
212
+ },
213
+ "fade": {
214
+ "life_sec": 1.4,
215
+ "life_variation_pct": 30,
216
+ "size_over_life_m": [
217
+ 0.3,
218
+ 0.9,
219
+ 1.3
220
+ ],
221
+ "size_variation_pct": 30,
222
+ "colors_over_life": [
223
+ "#5a4030",
224
+ "#3a3532",
225
+ "#55524f"
226
+ ],
227
+ "opacity_over_life_pct": [
228
+ 0,
229
+ 0,
230
+ 42,
231
+ 0
232
+ ],
233
+ "spin_deg_per_sec": 30
234
+ },
235
+ "start_delay_sec": 0,
236
+ "minimum_quality_level": "medium"
237
+ },
238
+ {
239
+ "element_kind": "particles",
240
+ "material": "ember",
241
+ "emit": {
242
+ "per_sec": 22,
243
+ "from_kind": "ring",
244
+ "from_radius_m": 0.15
245
+ },
246
+ "move": {
247
+ "direction_kind": "random",
248
+ "spread_deg": 25,
249
+ "speed_m_per_sec": 0.8,
250
+ "speed_variation_pct": 50,
251
+ "gravity_pct": 30,
252
+ "turbulence_m": 0.35,
253
+ "turbulence_per_sec": 1.4,
254
+ "wind_pct": 80
255
+ },
256
+ "fade": {
257
+ "life_sec": 1,
258
+ "life_variation_pct": 40,
259
+ "size_over_life_m": [
260
+ 0.035,
261
+ 0.02
262
+ ],
263
+ "colors_over_life": [
264
+ "#ffd070",
265
+ "#ff6a1a"
266
+ ],
267
+ "opacity_over_life_pct": [
268
+ 100,
269
+ 100,
270
+ 0
271
+ ],
272
+ "glow_pct": 320
273
+ }
274
+ },
275
+ {
276
+ "element_kind": "flash",
277
+ "color": "#ff9030",
278
+ "strength_lux": 34,
279
+ "radius_m": 10,
280
+ "duration_sec": 1,
281
+ "strength_over_life_pct": [
282
+ 100,
283
+ 100
284
+ ],
285
+ "flicker_pct": 25
286
+ }
287
+ ]
288
+ }
@@ -0,0 +1,51 @@
1
+ {
2
+ "effect_format_version_number": 1,
3
+ "name": "fireflies",
4
+ "summary": "Fireflies wandering through an area at dusk.",
5
+ "family": "ambient",
6
+ "is_looping": true,
7
+ "duration_sec": 1,
8
+ "importance": "low",
9
+ "elements": [
10
+ {
11
+ "element_kind": "particles",
12
+ "material": "glow",
13
+ "emit": {
14
+ "per_sec": 5,
15
+ "from_kind": "box",
16
+ "from_size_m": [
17
+ 10,
18
+ 2,
19
+ 10
20
+ ]
21
+ },
22
+ "move": {
23
+ "direction_kind": "random",
24
+ "speed_m_per_sec": 0.25,
25
+ "turbulence_m": 1.2,
26
+ "turbulence_per_sec": 0.35
27
+ },
28
+ "fade": {
29
+ "life_sec": 5,
30
+ "life_variation_pct": 30,
31
+ "size_over_life_m": [
32
+ 0.05,
33
+ 0.08,
34
+ 0.05
35
+ ],
36
+ "size_variation_pct": 30,
37
+ "colors_over_life": [
38
+ "#e8ff80",
39
+ "#b0e040"
40
+ ],
41
+ "opacity_over_life_pct": [
42
+ 0,
43
+ 100,
44
+ 60,
45
+ 0
46
+ ],
47
+ "glow_pct": 320
48
+ }
49
+ }
50
+ ]
51
+ }