@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,181 @@
1
+ {
2
+ "effect_format_version_number": 1,
3
+ "name": "splash_large",
4
+ "summary": "A big splash: something heavy falling in. A crown of water, a column of drops, spray and rings.",
5
+ "family": "water",
6
+ "elements": [
7
+ {
8
+ "element_kind": "particles",
9
+ "material": "water",
10
+ "emit": {
11
+ "burst_count": 46,
12
+ "from_kind": "ring",
13
+ "from_radius_m": 0.35
14
+ },
15
+ "move": {
16
+ "direction_kind": "up",
17
+ "spread_deg": 30,
18
+ "speed_m_per_sec": 6.5,
19
+ "speed_variation_pct": 55,
20
+ "gravity_pct": 100
21
+ },
22
+ "fade": {
23
+ "life_sec": 1.1,
24
+ "life_variation_pct": 35,
25
+ "size_over_life_m": [
26
+ 0.09,
27
+ 0.06
28
+ ],
29
+ "size_variation_pct": 45,
30
+ "colors_over_life": [
31
+ "#e4f2ff",
32
+ "#b0d4f0"
33
+ ],
34
+ "opacity_over_life_pct": [
35
+ 90,
36
+ 90,
37
+ 0
38
+ ],
39
+ "facing_kind": "velocity",
40
+ "streak_duration_sec": 0.04
41
+ }
42
+ },
43
+ {
44
+ "element_kind": "particles",
45
+ "material": "mist",
46
+ "emit": {
47
+ "burst_count": 12,
48
+ "from_kind": "ring",
49
+ "from_radius_m": 0.4,
50
+ "is_from_edge": true
51
+ },
52
+ "move": {
53
+ "direction_kind": "up",
54
+ "spread_deg": 38,
55
+ "speed_m_per_sec": 4,
56
+ "speed_variation_pct": 40,
57
+ "gravity_pct": 60,
58
+ "drag_per_sec": 1.2
59
+ },
60
+ "fade": {
61
+ "life_sec": 0.9,
62
+ "life_variation_pct": 25,
63
+ "size_over_life_m": [
64
+ 0.3,
65
+ 0.9,
66
+ 1.1
67
+ ],
68
+ "size_variation_pct": 30,
69
+ "colors_over_life": [
70
+ "#eef2f6",
71
+ "#ffffff"
72
+ ],
73
+ "opacity_over_life_pct": [
74
+ 0,
75
+ 65,
76
+ 0
77
+ ],
78
+ "spin_deg_per_sec": 30
79
+ }
80
+ },
81
+ {
82
+ "element_kind": "particles",
83
+ "material": "water",
84
+ "emit": {
85
+ "burst_count": 1
86
+ },
87
+ "move": {
88
+ "speed_m_per_sec": 0
89
+ },
90
+ "fade": {
91
+ "life_sec": 0.9,
92
+ "life_variation_pct": 0,
93
+ "size_over_life_m": [
94
+ 0.3,
95
+ 3.4
96
+ ],
97
+ "size_variation_pct": 0,
98
+ "colors_over_life": [
99
+ "#f0f8ff"
100
+ ],
101
+ "opacity_over_life_pct": [
102
+ 70,
103
+ 35,
104
+ 0
105
+ ],
106
+ "facing_kind": "ground"
107
+ },
108
+ "shape": "ring"
109
+ },
110
+ {
111
+ "element_kind": "particles",
112
+ "material": "water",
113
+ "emit": {
114
+ "burst_count": 1
115
+ },
116
+ "move": {
117
+ "speed_m_per_sec": 0
118
+ },
119
+ "fade": {
120
+ "life_sec": 1,
121
+ "life_variation_pct": 0,
122
+ "size_over_life_m": [
123
+ 0.2,
124
+ 2.6
125
+ ],
126
+ "size_variation_pct": 0,
127
+ "colors_over_life": [
128
+ "#e0f0ff"
129
+ ],
130
+ "opacity_over_life_pct": [
131
+ 70,
132
+ 35,
133
+ 0
134
+ ],
135
+ "facing_kind": "ground"
136
+ },
137
+ "shape": "ring",
138
+ "start_delay_sec": 0.2
139
+ },
140
+ {
141
+ "element_kind": "particles",
142
+ "material": "mist",
143
+ "emit": {
144
+ "burst_count": 6,
145
+ "from_kind": "sphere",
146
+ "from_radius_m": 0.2
147
+ },
148
+ "move": {
149
+ "direction_kind": "up",
150
+ "speed_m_per_sec": 2,
151
+ "speed_variation_pct": 45,
152
+ "drag_per_sec": 2.5,
153
+ "gravity_pct": -4,
154
+ "wind_pct": 100,
155
+ "turbulence_m": 0.3,
156
+ "turbulence_per_sec": 0.8,
157
+ "spread_deg": 60
158
+ },
159
+ "fade": {
160
+ "life_sec": 1.2,
161
+ "life_variation_pct": 30,
162
+ "size_over_life_m": [
163
+ 0.4,
164
+ 1.1,
165
+ 1.5
166
+ ],
167
+ "size_variation_pct": 30,
168
+ "colors_over_life": [
169
+ "#eef2f6",
170
+ "#ffffff"
171
+ ],
172
+ "opacity_over_life_pct": [
173
+ 0,
174
+ 40,
175
+ 0
176
+ ],
177
+ "spin_deg_per_sec": 25
178
+ }
179
+ }
180
+ ]
181
+ }
@@ -0,0 +1,111 @@
1
+ {
2
+ "effect_format_version_number": 1,
3
+ "name": "splash_small",
4
+ "summary": "A small splash: a foot in a puddle, a stone dropped in. Drops, a ring and a breath of spray.",
5
+ "family": "water",
6
+ "elements": [
7
+ {
8
+ "element_kind": "particles",
9
+ "material": "water",
10
+ "emit": {
11
+ "burst_count": 12
12
+ },
13
+ "move": {
14
+ "direction_kind": "up",
15
+ "spread_deg": 45,
16
+ "speed_m_per_sec": 2.6,
17
+ "speed_variation_pct": 55,
18
+ "gravity_pct": 100
19
+ },
20
+ "fade": {
21
+ "life_sec": 0.6,
22
+ "life_variation_pct": 35,
23
+ "size_over_life_m": [
24
+ 0.05,
25
+ 0.035
26
+ ],
27
+ "size_variation_pct": 45,
28
+ "colors_over_life": [
29
+ "#e4f2ff",
30
+ "#b0d4f0"
31
+ ],
32
+ "opacity_over_life_pct": [
33
+ 90,
34
+ 90,
35
+ 0
36
+ ],
37
+ "facing_kind": "velocity",
38
+ "streak_duration_sec": 0.04
39
+ }
40
+ },
41
+ {
42
+ "element_kind": "particles",
43
+ "material": "water",
44
+ "emit": {
45
+ "burst_count": 1
46
+ },
47
+ "move": {
48
+ "speed_m_per_sec": 0
49
+ },
50
+ "fade": {
51
+ "life_sec": 0.6,
52
+ "life_variation_pct": 0,
53
+ "size_over_life_m": [
54
+ 0.1,
55
+ 0.9
56
+ ],
57
+ "size_variation_pct": 0,
58
+ "colors_over_life": [
59
+ "#eef6ff"
60
+ ],
61
+ "opacity_over_life_pct": [
62
+ 70,
63
+ 35,
64
+ 0
65
+ ],
66
+ "facing_kind": "ground"
67
+ },
68
+ "shape": "ring"
69
+ },
70
+ {
71
+ "element_kind": "particles",
72
+ "material": "mist",
73
+ "emit": {
74
+ "burst_count": 3,
75
+ "from_kind": "sphere",
76
+ "from_radius_m": 0.05
77
+ },
78
+ "move": {
79
+ "direction_kind": "up",
80
+ "speed_m_per_sec": 1,
81
+ "speed_variation_pct": 45,
82
+ "drag_per_sec": 2.5,
83
+ "gravity_pct": -4,
84
+ "wind_pct": 100,
85
+ "turbulence_m": 0.3,
86
+ "turbulence_per_sec": 0.8,
87
+ "spread_deg": 50
88
+ },
89
+ "fade": {
90
+ "life_sec": 0.5,
91
+ "life_variation_pct": 30,
92
+ "size_over_life_m": [
93
+ 0.1,
94
+ 0.35,
95
+ 0.45
96
+ ],
97
+ "size_variation_pct": 30,
98
+ "colors_over_life": [
99
+ "#eef2f6",
100
+ "#ffffff"
101
+ ],
102
+ "opacity_over_life_pct": [
103
+ 0,
104
+ 35,
105
+ 0
106
+ ],
107
+ "spin_deg_per_sec": 25
108
+ }
109
+ }
110
+ ]
111
+ }
@@ -0,0 +1,64 @@
1
+ {
2
+ "effect_format_version_number": 1,
3
+ "name": "steam_vent",
4
+ "summary": "A jet of white steam along its direction: a pipe, a geyser, a kettle.",
5
+ "family": "smoke",
6
+ "is_looping": true,
7
+ "duration_sec": 1,
8
+ "elements": [
9
+ {
10
+ "element_kind": "particles",
11
+ "material": "mist",
12
+ "emit": {
13
+ "per_sec": 24
14
+ },
15
+ "move": {
16
+ "direction_kind": "along",
17
+ "spread_deg": 7,
18
+ "speed_m_per_sec": 5,
19
+ "speed_variation_pct": 30,
20
+ "drag_per_sec": 1.6,
21
+ "gravity_pct": -6,
22
+ "wind_pct": 100,
23
+ "turbulence_m": 0.3,
24
+ "turbulence_per_sec": 1
25
+ },
26
+ "fade": {
27
+ "life_sec": 1.5,
28
+ "life_variation_pct": 30,
29
+ "size_over_life_m": [
30
+ 0.14,
31
+ 0.9,
32
+ 1.5
33
+ ],
34
+ "size_variation_pct": 30,
35
+ "colors_over_life": [
36
+ "#eef2f6",
37
+ "#ffffff"
38
+ ],
39
+ "opacity_over_life_pct": [
40
+ 0,
41
+ 60,
42
+ 25,
43
+ 0
44
+ ],
45
+ "spin_deg_per_sec": 30
46
+ },
47
+ "shape": "puff"
48
+ },
49
+ {
50
+ "element_kind": "warp",
51
+ "warp_kind": "haze",
52
+ "life_sec": 1,
53
+ "radius_over_life_m": [
54
+ 0.7,
55
+ 0.7
56
+ ],
57
+ "strength_over_life_pct": [
58
+ 30,
59
+ 30
60
+ ],
61
+ "minimum_quality_level": "medium"
62
+ }
63
+ ]
64
+ }