@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,50 @@
1
+ {
2
+ "effect_format_version_number": 1,
3
+ "name": "ground_mist",
4
+ "summary": "Mist lying low over a patch of ground and drifting.",
5
+ "family": "ambient",
6
+ "is_looping": true,
7
+ "duration_sec": 1,
8
+ "importance": "low",
9
+ "elements": [
10
+ {
11
+ "element_kind": "particles",
12
+ "material": "mist",
13
+ "emit": {
14
+ "per_sec": 2.2,
15
+ "from_kind": "box",
16
+ "from_size_m": [
17
+ 12,
18
+ 0.4,
19
+ 12
20
+ ]
21
+ },
22
+ "move": {
23
+ "direction_kind": "random",
24
+ "speed_m_per_sec": 0.15,
25
+ "turbulence_m": 0.8,
26
+ "turbulence_per_sec": 0.15,
27
+ "wind_pct": 40
28
+ },
29
+ "fade": {
30
+ "life_sec": 9,
31
+ "life_variation_pct": 25,
32
+ "size_over_life_m": [
33
+ 4,
34
+ 5.5
35
+ ],
36
+ "size_variation_pct": 30,
37
+ "colors_over_life": [
38
+ "#d8e0e8"
39
+ ],
40
+ "opacity_over_life_pct": [
41
+ 0,
42
+ 24,
43
+ 24,
44
+ 0
45
+ ],
46
+ "spin_deg_per_sec": 4
47
+ }
48
+ }
49
+ ]
50
+ }
@@ -0,0 +1,122 @@
1
+ {
2
+ "effect_format_version_number": 1,
3
+ "name": "ground_slam",
4
+ "summary": "Something heavy striking the ground: cracks, a ring of dust, stones thrown up and a hard shake.",
5
+ "family": "shockwaves",
6
+ "importance": "high",
7
+ "elements": [
8
+ {
9
+ "element_kind": "mark",
10
+ "shape": "crack",
11
+ "size_m": 3,
12
+ "life_sec": 30,
13
+ "color": "#141210",
14
+ "opacity_pct": 85
15
+ },
16
+ {
17
+ "element_kind": "particles",
18
+ "material": "dust",
19
+ "emit": {
20
+ "burst_count": 1
21
+ },
22
+ "move": {
23
+ "speed_m_per_sec": 0
24
+ },
25
+ "fade": {
26
+ "life_sec": 0.45,
27
+ "life_variation_pct": 0,
28
+ "size_over_life_m": [
29
+ 0.5,
30
+ 7
31
+ ],
32
+ "size_variation_pct": 0,
33
+ "colors_over_life": [
34
+ "#e0d4c0"
35
+ ],
36
+ "opacity_over_life_pct": [
37
+ 70,
38
+ 35,
39
+ 0
40
+ ],
41
+ "facing_kind": "along"
42
+ },
43
+ "shape": "ring"
44
+ },
45
+ {
46
+ "element_kind": "particles",
47
+ "material": "dust",
48
+ "emit": {
49
+ "burst_count": 18,
50
+ "from_kind": "ring",
51
+ "from_radius_m": 0.5
52
+ },
53
+ "move": {
54
+ "direction_kind": "outward",
55
+ "speed_m_per_sec": 5.5,
56
+ "speed_variation_pct": 35,
57
+ "drag_per_sec": 3,
58
+ "gravity_pct": -3,
59
+ "wind_pct": 60
60
+ },
61
+ "fade": {
62
+ "life_sec": 1.2,
63
+ "life_variation_pct": 25,
64
+ "size_over_life_m": [
65
+ 0.35,
66
+ 1.1,
67
+ 1.5
68
+ ],
69
+ "size_variation_pct": 30,
70
+ "colors_over_life": [
71
+ "#c8b498",
72
+ "#d8c8b0"
73
+ ],
74
+ "opacity_over_life_pct": [
75
+ 0,
76
+ 55,
77
+ 25,
78
+ 0
79
+ ],
80
+ "spin_deg_per_sec": 30
81
+ }
82
+ },
83
+ {
84
+ "element_kind": "debris",
85
+ "material": "stone",
86
+ "count": 12,
87
+ "from_radius_m": 0.6,
88
+ "direction_kind": "up",
89
+ "spread_deg": 50,
90
+ "speed_m_per_sec": 6,
91
+ "speed_variation_pct": 45,
92
+ "size_m": 0.14,
93
+ "life_sec": 3.5,
94
+ "colors": [
95
+ "#8a857c",
96
+ "#6c6862",
97
+ "#a39c92"
98
+ ],
99
+ "bounce_effect_name": "dust_puff"
100
+ },
101
+ {
102
+ "element_kind": "warp",
103
+ "warp_kind": "ripple",
104
+ "life_sec": 0.35,
105
+ "radius_over_life_m": [
106
+ 0.4,
107
+ 6
108
+ ],
109
+ "strength_over_life_pct": [
110
+ 70,
111
+ 0
112
+ ],
113
+ "minimum_quality_level": "medium"
114
+ },
115
+ {
116
+ "element_kind": "shake",
117
+ "strength_pct": 55,
118
+ "duration_sec": 0.4,
119
+ "radius_m": 22
120
+ }
121
+ ]
122
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "effect_format_version_number": 1,
3
+ "name": "heat_haze",
4
+ "summary": "Air shimmering over heat, with nothing else drawn: a vent, hot ground, a jet's wash.",
5
+ "family": "warps",
6
+ "is_looping": true,
7
+ "duration_sec": 1,
8
+ "importance": "low",
9
+ "elements": [
10
+ {
11
+ "element_kind": "warp",
12
+ "warp_kind": "haze",
13
+ "life_sec": 1,
14
+ "radius_over_life_m": [
15
+ 1.5,
16
+ 1.5
17
+ ],
18
+ "strength_over_life_pct": [
19
+ 50,
20
+ 50
21
+ ]
22
+ }
23
+ ]
24
+ }
@@ -0,0 +1,150 @@
1
+ {
2
+ "effect_format_version_number": 1,
3
+ "name": "hit_blade",
4
+ "summary": "A blade cutting: a bright curved slash that sweeps as it fades, a glint and sparks thrown off the edge.",
5
+ "family": "hits",
6
+ "elements": [
7
+ {
8
+ "element_kind": "particles",
9
+ "material": "energy",
10
+ "emit": {
11
+ "burst_count": 1
12
+ },
13
+ "move": {
14
+ "speed_m_per_sec": 0
15
+ },
16
+ "fade": {
17
+ "life_sec": 0.2,
18
+ "life_variation_pct": 0,
19
+ "size_over_life_m": [
20
+ 1.2,
21
+ 1.9,
22
+ 2
23
+ ],
24
+ "size_variation_pct": 10,
25
+ "colors_over_life": [
26
+ "#ffffff",
27
+ "#cfe6ff",
28
+ "#7fb2ff"
29
+ ],
30
+ "opacity_over_life_pct": [
31
+ 100,
32
+ 100,
33
+ 0
34
+ ],
35
+ "glow_pct": 320,
36
+ "spin_deg_per_sec": 380
37
+ },
38
+ "shape": "crescent"
39
+ },
40
+ {
41
+ "element_kind": "particles",
42
+ "material": "glow",
43
+ "emit": {
44
+ "burst_count": 1
45
+ },
46
+ "move": {
47
+ "speed_m_per_sec": 0
48
+ },
49
+ "fade": {
50
+ "life_sec": 0.08,
51
+ "life_variation_pct": 0,
52
+ "size_over_life_m": [
53
+ 0.3,
54
+ 0.7,
55
+ 0.4
56
+ ],
57
+ "size_variation_pct": 0,
58
+ "colors_over_life": [
59
+ "#ffffff",
60
+ "#c8e0ff"
61
+ ],
62
+ "opacity_over_life_pct": [
63
+ 100,
64
+ 60,
65
+ 0
66
+ ],
67
+ "glow_pct": 150
68
+ }
69
+ },
70
+ {
71
+ "element_kind": "particles",
72
+ "material": "energy",
73
+ "emit": {
74
+ "burst_count": 2
75
+ },
76
+ "move": {
77
+ "speed_m_per_sec": 0
78
+ },
79
+ "fade": {
80
+ "life_sec": 0.12,
81
+ "life_variation_pct": 30,
82
+ "size_over_life_m": [
83
+ 0.15,
84
+ 0.5,
85
+ 0.1
86
+ ],
87
+ "size_variation_pct": 30,
88
+ "colors_over_life": [
89
+ "#ffffff"
90
+ ],
91
+ "opacity_over_life_pct": [
92
+ 100,
93
+ 0
94
+ ],
95
+ "glow_pct": 400,
96
+ "spin_deg_per_sec": 200
97
+ },
98
+ "shape": "star"
99
+ },
100
+ {
101
+ "element_kind": "particles",
102
+ "material": "spark",
103
+ "emit": {
104
+ "burst_count": 14
105
+ },
106
+ "move": {
107
+ "direction_kind": "along",
108
+ "speed_m_per_sec": 7.5,
109
+ "speed_variation_pct": 60,
110
+ "drag_per_sec": 1.5,
111
+ "gravity_pct": 100,
112
+ "spread_deg": 70
113
+ },
114
+ "fade": {
115
+ "life_sec": 0.35,
116
+ "life_variation_pct": 50,
117
+ "size_over_life_m": [
118
+ 0.06,
119
+ 0.025
120
+ ],
121
+ "size_variation_pct": 40,
122
+ "colors_over_life": [
123
+ "#ffffff",
124
+ "#ffe8b0",
125
+ "#ff9a30"
126
+ ],
127
+ "opacity_over_life_pct": [
128
+ 100,
129
+ 100,
130
+ 0
131
+ ],
132
+ "glow_pct": 380,
133
+ "facing_kind": "velocity",
134
+ "streak_duration_sec": 0.05
135
+ }
136
+ },
137
+ {
138
+ "element_kind": "flash",
139
+ "color": "#e0ecff",
140
+ "strength_lux": 8,
141
+ "radius_m": 4,
142
+ "duration_sec": 0.1,
143
+ "strength_over_life_pct": [
144
+ 100,
145
+ 45,
146
+ 0
147
+ ]
148
+ }
149
+ ]
150
+ }
@@ -0,0 +1,157 @@
1
+ {
2
+ "effect_format_version_number": 1,
3
+ "name": "hit_block",
4
+ "summary": "Metal on metal: a white flash and a fan of fast sparks. A parry, a shield taking a blow.",
5
+ "family": "hits",
6
+ "elements": [
7
+ {
8
+ "element_kind": "particles",
9
+ "material": "glow",
10
+ "emit": {
11
+ "burst_count": 1
12
+ },
13
+ "move": {
14
+ "speed_m_per_sec": 0
15
+ },
16
+ "fade": {
17
+ "life_sec": 0.09,
18
+ "life_variation_pct": 0,
19
+ "size_over_life_m": [
20
+ 0.25,
21
+ 0.9,
22
+ 0.5
23
+ ],
24
+ "size_variation_pct": 0,
25
+ "colors_over_life": [
26
+ "#ffffff",
27
+ "#d0e4ff"
28
+ ],
29
+ "opacity_over_life_pct": [
30
+ 100,
31
+ 60,
32
+ 0
33
+ ],
34
+ "glow_pct": 150
35
+ }
36
+ },
37
+ {
38
+ "element_kind": "particles",
39
+ "material": "glow",
40
+ "emit": {
41
+ "burst_count": 1
42
+ },
43
+ "move": {
44
+ "speed_m_per_sec": 0
45
+ },
46
+ "fade": {
47
+ "life_sec": 0.14,
48
+ "life_variation_pct": 0,
49
+ "size_over_life_m": [
50
+ 0.4,
51
+ 1.2,
52
+ 1
53
+ ],
54
+ "size_variation_pct": 0,
55
+ "colors_over_life": [
56
+ "#ffffff",
57
+ "#c0dcff"
58
+ ],
59
+ "opacity_over_life_pct": [
60
+ 100,
61
+ 100,
62
+ 0
63
+ ],
64
+ "glow_pct": 120,
65
+ "spin_deg_per_sec": 1
66
+ },
67
+ "shape": "star",
68
+ "look_names": [
69
+ "cartoon"
70
+ ]
71
+ },
72
+ {
73
+ "element_kind": "particles",
74
+ "material": "glow",
75
+ "emit": {
76
+ "burst_count": 1
77
+ },
78
+ "move": {
79
+ "speed_m_per_sec": 0
80
+ },
81
+ "fade": {
82
+ "life_sec": 0.16,
83
+ "life_variation_pct": 0,
84
+ "size_over_life_m": [
85
+ 0.2,
86
+ 1.3
87
+ ],
88
+ "size_variation_pct": 0,
89
+ "colors_over_life": [
90
+ "#e8f2ff"
91
+ ],
92
+ "opacity_over_life_pct": [
93
+ 70,
94
+ 35,
95
+ 0
96
+ ],
97
+ "facing_kind": "along"
98
+ },
99
+ "shape": "ring"
100
+ },
101
+ {
102
+ "element_kind": "particles",
103
+ "material": "spark",
104
+ "emit": {
105
+ "burst_count": 24
106
+ },
107
+ "move": {
108
+ "direction_kind": "along",
109
+ "speed_m_per_sec": 11,
110
+ "speed_variation_pct": 60,
111
+ "drag_per_sec": 2,
112
+ "gravity_pct": 100,
113
+ "spread_deg": 80
114
+ },
115
+ "fade": {
116
+ "life_sec": 0.4,
117
+ "life_variation_pct": 50,
118
+ "size_over_life_m": [
119
+ 0.06,
120
+ 0.025
121
+ ],
122
+ "size_variation_pct": 40,
123
+ "colors_over_life": [
124
+ "#ffffff",
125
+ "#ffe8b0",
126
+ "#ff9a30"
127
+ ],
128
+ "opacity_over_life_pct": [
129
+ 100,
130
+ 100,
131
+ 0
132
+ ],
133
+ "glow_pct": 380,
134
+ "facing_kind": "velocity",
135
+ "streak_duration_sec": 0.05
136
+ }
137
+ },
138
+ {
139
+ "element_kind": "flash",
140
+ "color": "#e8f0ff",
141
+ "strength_lux": 12,
142
+ "radius_m": 5,
143
+ "duration_sec": 0.1,
144
+ "strength_over_life_pct": [
145
+ 100,
146
+ 45,
147
+ 0
148
+ ]
149
+ },
150
+ {
151
+ "element_kind": "shake",
152
+ "strength_pct": 10,
153
+ "duration_sec": 0.1,
154
+ "radius_m": 6
155
+ }
156
+ ]
157
+ }