@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.
- package/EFFECT-FILES.md +301 -0
- package/LICENSE.txt +93 -0
- package/README.md +63 -2
- package/batches/chunks.js +294 -0
- package/batches/marks.js +160 -0
- package/batches/ribbons.js +233 -0
- package/batches/shared.js +155 -0
- package/batches/sprites.js +447 -0
- package/batches/warps.js +222 -0
- package/budget.js +115 -0
- package/debris.js +173 -0
- package/emit.js +143 -0
- package/flashes.js +113 -0
- package/format.js +365 -0
- package/index.d.ts +373 -0
- package/index.js +1168 -0
- package/library/bubbles_rising.json +47 -0
- package/library/bullet_impact.json +588 -0
- package/library/campfire.json +235 -0
- package/library/candle_flame.json +100 -0
- package/library/confetti.json +165 -0
- package/library/dash_burst.json +73 -0
- package/library/debris_glass.json +96 -0
- package/library/debris_metal.json +106 -0
- package/library/debris_stone.json +106 -0
- package/library/debris_wood.json +101 -0
- package/library/dust_motes.json +51 -0
- package/library/dust_puff.json +49 -0
- package/library/electric_sparks.json +175 -0
- package/library/embers_drift.json +55 -0
- package/library/exhaust_puff.json +62 -0
- package/library/explosion_air.json +232 -0
- package/library/explosion_large.json +373 -0
- package/library/explosion_magic.json +266 -0
- package/library/explosion_medium.json +289 -0
- package/library/explosion_small.json +289 -0
- package/library/explosion_water.json +177 -0
- package/library/falling_leaves.json +54 -0
- package/library/fire_burst.json +185 -0
- package/library/fire_large.json +279 -0
- package/library/fireball.json +288 -0
- package/library/fireflies.json +51 -0
- package/library/firework_burst.json +127 -0
- package/library/footstep.json +270 -0
- package/library/fountain_spray.json +80 -0
- package/library/frost_burst.json +202 -0
- package/library/ground_mist.json +50 -0
- package/library/ground_slam.json +122 -0
- package/library/heat_haze.json +24 -0
- package/library/hit_blade.json +150 -0
- package/library/hit_block.json +157 -0
- package/library/hit_critical.json +293 -0
- package/library/hit_heavy.json +211 -0
- package/library/hit_light.json +122 -0
- package/library/hit_magic.json +114 -0
- package/library/impact.json +417 -0
- package/library/impact_heavy.json +279 -0
- package/library/index.json +464 -0
- package/library/jump_puff.json +46 -0
- package/library/landing_heavy.json +105 -0
- package/library/landing_puff.json +75 -0
- package/library/level_up.json +164 -0
- package/library/lightning_arc.json +90 -0
- package/library/lightning_strike.json +387 -0
- package/library/magic_aura.json +127 -0
- package/library/magic_bolt.json +107 -0
- package/library/magic_bolt_impact.json +181 -0
- package/library/magic_cast.json +115 -0
- package/library/magic_charge.json +91 -0
- package/library/magic_heal.json +123 -0
- package/library/magic_shield.json +89 -0
- package/library/magic_teleport.json +177 -0
- package/library/mark_bullet_hole.json +20 -0
- package/library/mark_crack.json +18 -0
- package/library/mark_footprint.json +20 -0
- package/library/mark_frost.json +18 -0
- package/library/mark_puddle.json +18 -0
- package/library/mark_scorch.json +18 -0
- package/library/mark_slash.json +18 -0
- package/library/mark_splat.json +18 -0
- package/library/pickup_collect.json +117 -0
- package/library/pickup_glow.json +76 -0
- package/library/poison_cloud.json +107 -0
- package/library/portal.json +328 -0
- package/library/shockwave_air.json +71 -0
- package/library/shockwave_ground.json +95 -0
- package/library/slide_dust.json +48 -0
- package/library/smoke_column.json +93 -0
- package/library/smoke_puff.json +48 -0
- package/library/smoke_screen.json +87 -0
- package/library/sparks_burst.json +85 -0
- package/library/sparks_fountain.json +93 -0
- package/library/sparks_shower.json +89 -0
- package/library/splash_large.json +181 -0
- package/library/splash_small.json +111 -0
- package/library/steam_vent.json +64 -0
- package/library/summon_circle.json +494 -0
- package/library/swim_splash.json +77 -0
- package/library/torch_flame.json +219 -0
- package/library/trail_blade.json +39 -0
- package/library/trail_blade_fire.json +90 -0
- package/library/trail_dash.json +80 -0
- package/library/trail_magic.json +94 -0
- package/library/trail_projectile.json +31 -0
- package/library/trail_smoke.json +125 -0
- package/library/warp_pulse.json +22 -0
- package/library/warp_ripple.json +23 -0
- package/library/water_ripple.json +69 -0
- package/library/waterfall_mist.json +95 -0
- package/looks.js +162 -0
- package/motion.js +145 -0
- package/online.d.ts +79 -0
- package/online.js +32 -0
- package/package.json +69 -4
- package/partners.js +255 -0
- package/piece.json +415 -0
- package/piece.json.js +416 -0
- package/server.d.ts +55 -0
- package/server.js +26 -0
- package/shapes.js +269 -0
- package/sync.js +528 -0
- package/tables.js +109 -0
- package/weather.js +289 -0
package/piece.json
ADDED
|
@@ -0,0 +1,415 @@
|
|
|
1
|
+
{
|
|
2
|
+
"statement_version_number": 2,
|
|
3
|
+
"name": "@zaisma/effects",
|
|
4
|
+
"title": "Effects",
|
|
5
|
+
"piece_version": "1.0.1",
|
|
6
|
+
"kind": "foundation",
|
|
7
|
+
"standard": "@zaisma/standard",
|
|
8
|
+
"summary": "Spectacle that holds a phone's frame rate, for three.js: thousands of lit particles, hits, explosions, magic, trails, screen warps, marks on surfaces, debris that bounces and weather, in the look a game picks. An effect is a small file an AI writes; 92 come with it. Flashes light the scene, the character and physics bring effects free, and online every player sees the same effect at once.",
|
|
9
|
+
"license": "PolyForm-Shield-1.0.0",
|
|
10
|
+
"entry_path": "index.js",
|
|
11
|
+
"server_entry_path": "server.js",
|
|
12
|
+
"file_paths": [
|
|
13
|
+
"EFFECT-FILES.md",
|
|
14
|
+
"LICENSE.txt",
|
|
15
|
+
"README.md",
|
|
16
|
+
"batches/chunks.js",
|
|
17
|
+
"batches/marks.js",
|
|
18
|
+
"batches/ribbons.js",
|
|
19
|
+
"batches/shared.js",
|
|
20
|
+
"batches/sprites.js",
|
|
21
|
+
"batches/warps.js",
|
|
22
|
+
"budget.js",
|
|
23
|
+
"debris.js",
|
|
24
|
+
"emit.js",
|
|
25
|
+
"flashes.js",
|
|
26
|
+
"format.js",
|
|
27
|
+
"index.d.ts",
|
|
28
|
+
"index.js",
|
|
29
|
+
"library/bubbles_rising.json",
|
|
30
|
+
"library/bullet_impact.json",
|
|
31
|
+
"library/campfire.json",
|
|
32
|
+
"library/candle_flame.json",
|
|
33
|
+
"library/confetti.json",
|
|
34
|
+
"library/dash_burst.json",
|
|
35
|
+
"library/debris_glass.json",
|
|
36
|
+
"library/debris_metal.json",
|
|
37
|
+
"library/debris_stone.json",
|
|
38
|
+
"library/debris_wood.json",
|
|
39
|
+
"library/dust_motes.json",
|
|
40
|
+
"library/dust_puff.json",
|
|
41
|
+
"library/electric_sparks.json",
|
|
42
|
+
"library/embers_drift.json",
|
|
43
|
+
"library/exhaust_puff.json",
|
|
44
|
+
"library/explosion_air.json",
|
|
45
|
+
"library/explosion_large.json",
|
|
46
|
+
"library/explosion_magic.json",
|
|
47
|
+
"library/explosion_medium.json",
|
|
48
|
+
"library/explosion_small.json",
|
|
49
|
+
"library/explosion_water.json",
|
|
50
|
+
"library/falling_leaves.json",
|
|
51
|
+
"library/fire_burst.json",
|
|
52
|
+
"library/fire_large.json",
|
|
53
|
+
"library/fireball.json",
|
|
54
|
+
"library/fireflies.json",
|
|
55
|
+
"library/firework_burst.json",
|
|
56
|
+
"library/footstep.json",
|
|
57
|
+
"library/fountain_spray.json",
|
|
58
|
+
"library/frost_burst.json",
|
|
59
|
+
"library/ground_mist.json",
|
|
60
|
+
"library/ground_slam.json",
|
|
61
|
+
"library/heat_haze.json",
|
|
62
|
+
"library/hit_blade.json",
|
|
63
|
+
"library/hit_block.json",
|
|
64
|
+
"library/hit_critical.json",
|
|
65
|
+
"library/hit_heavy.json",
|
|
66
|
+
"library/hit_light.json",
|
|
67
|
+
"library/hit_magic.json",
|
|
68
|
+
"library/impact.json",
|
|
69
|
+
"library/impact_heavy.json",
|
|
70
|
+
"library/index.json",
|
|
71
|
+
"library/jump_puff.json",
|
|
72
|
+
"library/landing_heavy.json",
|
|
73
|
+
"library/landing_puff.json",
|
|
74
|
+
"library/level_up.json",
|
|
75
|
+
"library/lightning_arc.json",
|
|
76
|
+
"library/lightning_strike.json",
|
|
77
|
+
"library/magic_aura.json",
|
|
78
|
+
"library/magic_bolt.json",
|
|
79
|
+
"library/magic_bolt_impact.json",
|
|
80
|
+
"library/magic_cast.json",
|
|
81
|
+
"library/magic_charge.json",
|
|
82
|
+
"library/magic_heal.json",
|
|
83
|
+
"library/magic_shield.json",
|
|
84
|
+
"library/magic_teleport.json",
|
|
85
|
+
"library/mark_bullet_hole.json",
|
|
86
|
+
"library/mark_crack.json",
|
|
87
|
+
"library/mark_footprint.json",
|
|
88
|
+
"library/mark_frost.json",
|
|
89
|
+
"library/mark_puddle.json",
|
|
90
|
+
"library/mark_scorch.json",
|
|
91
|
+
"library/mark_slash.json",
|
|
92
|
+
"library/mark_splat.json",
|
|
93
|
+
"library/pickup_collect.json",
|
|
94
|
+
"library/pickup_glow.json",
|
|
95
|
+
"library/poison_cloud.json",
|
|
96
|
+
"library/portal.json",
|
|
97
|
+
"library/shockwave_air.json",
|
|
98
|
+
"library/shockwave_ground.json",
|
|
99
|
+
"library/slide_dust.json",
|
|
100
|
+
"library/smoke_column.json",
|
|
101
|
+
"library/smoke_puff.json",
|
|
102
|
+
"library/smoke_screen.json",
|
|
103
|
+
"library/sparks_burst.json",
|
|
104
|
+
"library/sparks_fountain.json",
|
|
105
|
+
"library/sparks_shower.json",
|
|
106
|
+
"library/splash_large.json",
|
|
107
|
+
"library/splash_small.json",
|
|
108
|
+
"library/steam_vent.json",
|
|
109
|
+
"library/summon_circle.json",
|
|
110
|
+
"library/swim_splash.json",
|
|
111
|
+
"library/torch_flame.json",
|
|
112
|
+
"library/trail_blade.json",
|
|
113
|
+
"library/trail_blade_fire.json",
|
|
114
|
+
"library/trail_dash.json",
|
|
115
|
+
"library/trail_magic.json",
|
|
116
|
+
"library/trail_projectile.json",
|
|
117
|
+
"library/trail_smoke.json",
|
|
118
|
+
"library/warp_pulse.json",
|
|
119
|
+
"library/warp_ripple.json",
|
|
120
|
+
"library/water_ripple.json",
|
|
121
|
+
"library/waterfall_mist.json",
|
|
122
|
+
"looks.js",
|
|
123
|
+
"motion.js",
|
|
124
|
+
"online.d.ts",
|
|
125
|
+
"online.js",
|
|
126
|
+
"partners.js",
|
|
127
|
+
"piece.json.js",
|
|
128
|
+
"server.d.ts",
|
|
129
|
+
"server.js",
|
|
130
|
+
"shapes.js",
|
|
131
|
+
"sync.js",
|
|
132
|
+
"tables.js",
|
|
133
|
+
"weather.js"
|
|
134
|
+
],
|
|
135
|
+
"server_file_paths": [
|
|
136
|
+
"format.js",
|
|
137
|
+
"index.d.ts",
|
|
138
|
+
"online.d.ts",
|
|
139
|
+
"server.d.ts",
|
|
140
|
+
"server.js",
|
|
141
|
+
"sync.js"
|
|
142
|
+
],
|
|
143
|
+
"needs": [
|
|
144
|
+
{
|
|
145
|
+
"name": "@zaisma/piece",
|
|
146
|
+
"version_range": "^1.0.0",
|
|
147
|
+
"kind": "piece"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"name": "@zaisma/net",
|
|
151
|
+
"version_range": "^2.0.0",
|
|
152
|
+
"kind": "piece"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "three",
|
|
156
|
+
"version_range": ">=0.163.0 <1.0.0",
|
|
157
|
+
"kind": "library"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"settings": [
|
|
161
|
+
{
|
|
162
|
+
"name": "look",
|
|
163
|
+
"value_kind": "choice",
|
|
164
|
+
"default_value": "cartoon",
|
|
165
|
+
"minimum_number": null,
|
|
166
|
+
"maximum_number": null,
|
|
167
|
+
"maximum_character_count": null,
|
|
168
|
+
"choices": [
|
|
169
|
+
"cartoon",
|
|
170
|
+
"glowing",
|
|
171
|
+
"faceted",
|
|
172
|
+
"realistic",
|
|
173
|
+
"own"
|
|
174
|
+
],
|
|
175
|
+
"summary": "How every effect is drawn. cartoon: few big shapes with crisp edges and flat tones. glowing: soft light that blooms. faceted: little low-poly solids with flat faces. realistic: textured, lit by the scene, soft where it thins. own: the look the game gave defineOwnLook. The same effect files play in each."
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"name": "quality_level",
|
|
179
|
+
"value_kind": "choice",
|
|
180
|
+
"default_value": "auto",
|
|
181
|
+
"minimum_number": null,
|
|
182
|
+
"maximum_number": null,
|
|
183
|
+
"maximum_character_count": null,
|
|
184
|
+
"choices": [
|
|
185
|
+
"auto",
|
|
186
|
+
"low",
|
|
187
|
+
"medium",
|
|
188
|
+
"high"
|
|
189
|
+
],
|
|
190
|
+
"summary": "How much the effects draw. low: 2,000 particles, no flash lights, warps or rain shelter. medium: 6,000 particles, two flash lights. high: 20,000 particles, four flash lights, particles darkened inside the sun's shadow. auto follows the lighting piece's quality when the game gave it, and otherwise starts at medium on phones and tablets, high elsewhere, and steps down while frames run slow."
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"name": "particle_budget_pct",
|
|
194
|
+
"value_kind": "number",
|
|
195
|
+
"default_value": 100,
|
|
196
|
+
"minimum_number": 10,
|
|
197
|
+
"maximum_number": 400,
|
|
198
|
+
"maximum_character_count": null,
|
|
199
|
+
"choices": null,
|
|
200
|
+
"summary": "How many particles may be alive at once, against the quality level's own count: 50 halves it for a game whose own scenes are heavy, 200 doubles it for one built on effects."
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"name": "time_scale_pct",
|
|
204
|
+
"value_kind": "number",
|
|
205
|
+
"default_value": 100,
|
|
206
|
+
"minimum_number": 0,
|
|
207
|
+
"maximum_number": 400,
|
|
208
|
+
"maximum_character_count": null,
|
|
209
|
+
"choices": null,
|
|
210
|
+
"summary": "How fast the effects' own time runs against the game's: 30 for slow motion, 0 freezes every effect where it is."
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"name": "flash_lights_enabled",
|
|
214
|
+
"value_kind": "boolean",
|
|
215
|
+
"default_value": true,
|
|
216
|
+
"minimum_number": null,
|
|
217
|
+
"maximum_number": null,
|
|
218
|
+
"maximum_character_count": null,
|
|
219
|
+
"choices": null,
|
|
220
|
+
"summary": "Whether effects with a flash light the scene. Off, they still glow."
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"name": "marks_enabled",
|
|
224
|
+
"value_kind": "boolean",
|
|
225
|
+
"default_value": true,
|
|
226
|
+
"minimum_number": null,
|
|
227
|
+
"maximum_number": null,
|
|
228
|
+
"maximum_character_count": null,
|
|
229
|
+
"choices": null,
|
|
230
|
+
"summary": "Whether effects leave marks on surfaces: scorches, cracks, splats."
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "warps_enabled",
|
|
234
|
+
"value_kind": "boolean",
|
|
235
|
+
"default_value": true,
|
|
236
|
+
"minimum_number": null,
|
|
237
|
+
"maximum_number": null,
|
|
238
|
+
"maximum_character_count": null,
|
|
239
|
+
"choices": null,
|
|
240
|
+
"summary": "Whether effects bend the picture: shockwave ripples, the shimmer over heat. Never drawn at low quality."
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"name": "shakes_enabled",
|
|
244
|
+
"value_kind": "boolean",
|
|
245
|
+
"default_value": true,
|
|
246
|
+
"minimum_number": null,
|
|
247
|
+
"maximum_number": null,
|
|
248
|
+
"maximum_character_count": null,
|
|
249
|
+
"choices": null,
|
|
250
|
+
"summary": "Whether effects shake the camera. A game's own settings screen turns this off for players who ask."
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"name": "rain_pct",
|
|
254
|
+
"value_kind": "number",
|
|
255
|
+
"default_value": 0,
|
|
256
|
+
"minimum_number": 0,
|
|
257
|
+
"maximum_number": 100,
|
|
258
|
+
"maximum_character_count": null,
|
|
259
|
+
"choices": null,
|
|
260
|
+
"summary": "How hard it rains: 0 is dry, 100 a downpour. Rain falls round the camera, leans with the wind, stays out from under roofs and splashes where it lands."
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"name": "snow_pct",
|
|
264
|
+
"value_kind": "number",
|
|
265
|
+
"default_value": 0,
|
|
266
|
+
"minimum_number": 0,
|
|
267
|
+
"maximum_number": 100,
|
|
268
|
+
"maximum_character_count": null,
|
|
269
|
+
"choices": null,
|
|
270
|
+
"summary": "How hard it snows: 0 is none, 100 a blizzard. Snow drifts with the wind and stays out from under roofs."
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"name": "fog_pct",
|
|
274
|
+
"value_kind": "number",
|
|
275
|
+
"default_value": 0,
|
|
276
|
+
"minimum_number": 0,
|
|
277
|
+
"maximum_number": 100,
|
|
278
|
+
"maximum_character_count": null,
|
|
279
|
+
"choices": null,
|
|
280
|
+
"summary": "How much mist drifts over the ground round the camera, carried by the wind: 0 is none, 100 thick banks."
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"name": "wind_speed_m_per_sec",
|
|
284
|
+
"value_kind": "number",
|
|
285
|
+
"default_value": 0,
|
|
286
|
+
"minimum_number": 0,
|
|
287
|
+
"maximum_number": 40,
|
|
288
|
+
"maximum_character_count": null,
|
|
289
|
+
"choices": null,
|
|
290
|
+
"summary": "How fast the wind blows. It carries every particle by as much as its effect says (wind_pct): smoke leans, rain slants, sparks barely notice."
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"name": "wind_direction_deg",
|
|
294
|
+
"value_kind": "number",
|
|
295
|
+
"default_value": 0,
|
|
296
|
+
"minimum_number": 0,
|
|
297
|
+
"maximum_number": 360,
|
|
298
|
+
"maximum_character_count": null,
|
|
299
|
+
"choices": null,
|
|
300
|
+
"summary": "The way the wind blows toward, in degrees counterclockwise seen from above: 0 toward +x, 90 toward -z."
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"name": "wind_gust_pct",
|
|
304
|
+
"value_kind": "number",
|
|
305
|
+
"default_value": 30,
|
|
306
|
+
"minimum_number": 0,
|
|
307
|
+
"maximum_number": 100,
|
|
308
|
+
"maximum_character_count": null,
|
|
309
|
+
"choices": null,
|
|
310
|
+
"summary": "How much the wind swells and eases: 0 is steady, 100 gusts from still to twice its speed."
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"name": "weather_change_duration_sec",
|
|
314
|
+
"value_kind": "number",
|
|
315
|
+
"default_value": 4,
|
|
316
|
+
"minimum_number": 0,
|
|
317
|
+
"maximum_number": 120,
|
|
318
|
+
"maximum_character_count": null,
|
|
319
|
+
"choices": null,
|
|
320
|
+
"summary": "How long the rain, snow, fog and wind take to reach what they're set to, so the weather turns instead of switching."
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"name": "rain_shelter_enabled",
|
|
324
|
+
"value_kind": "boolean",
|
|
325
|
+
"default_value": true,
|
|
326
|
+
"minimum_number": null,
|
|
327
|
+
"maximum_number": null,
|
|
328
|
+
"maximum_character_count": null,
|
|
329
|
+
"choices": null,
|
|
330
|
+
"summary": "Whether rain and snow stay out from under roofs, from a small picture of the level seen from above that's drawn again only when the camera has moved. Off, and at low quality, they fall to ground_height_m everywhere."
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"name": "ground_height_m",
|
|
334
|
+
"value_kind": "number",
|
|
335
|
+
"default_value": 0,
|
|
336
|
+
"minimum_number": -10000,
|
|
337
|
+
"maximum_number": 10000,
|
|
338
|
+
"maximum_character_count": null,
|
|
339
|
+
"choices": null,
|
|
340
|
+
"summary": "The height of the ground, in metres, where the game gave nothing better: where rain lands and chunks bounce without a physics world or a ray test."
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"name": "footstep_effects_enabled",
|
|
344
|
+
"value_kind": "boolean",
|
|
345
|
+
"default_value": true,
|
|
346
|
+
"minimum_number": null,
|
|
347
|
+
"maximum_number": null,
|
|
348
|
+
"maximum_character_count": null,
|
|
349
|
+
"choices": null,
|
|
350
|
+
"summary": "Whether a character's footfalls raise dust (or a splash in water), with the character piece."
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"name": "landing_effects_enabled",
|
|
354
|
+
"value_kind": "boolean",
|
|
355
|
+
"default_value": true,
|
|
356
|
+
"minimum_number": null,
|
|
357
|
+
"maximum_number": null,
|
|
358
|
+
"maximum_character_count": null,
|
|
359
|
+
"choices": null,
|
|
360
|
+
"summary": "Whether a character's jump and landing raise a puff, bigger the harder it lands, with the character piece."
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"name": "impact_effects_enabled",
|
|
364
|
+
"value_kind": "boolean",
|
|
365
|
+
"default_value": true,
|
|
366
|
+
"minimum_number": null,
|
|
367
|
+
"maximum_number": null,
|
|
368
|
+
"maximum_character_count": null,
|
|
369
|
+
"choices": null,
|
|
370
|
+
"summary": "Whether a physics body that hits something throws an impact, bigger the faster it hit, with the physics piece."
|
|
371
|
+
}
|
|
372
|
+
],
|
|
373
|
+
"hooks": [
|
|
374
|
+
{
|
|
375
|
+
"name": "before_effect",
|
|
376
|
+
"hook_kind": "decision",
|
|
377
|
+
"summary": "Asked before every effect plays, with { effectName, positionM, scalePct, strengthPct, color, surfaceKind, reason }: reason is play, footstep, landing, jump, body_hit, chunk_landed or shared. Answer it with any field changed (another effect for a boss's footsteps, a tint), or null to stop it."
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"name": "effect_started",
|
|
381
|
+
"hook_kind": "event",
|
|
382
|
+
"summary": "Told when an effect starts, with { playId, effectName, positionM, scalePct, strengthPct, surfaceKind, reason }: where a game plays the sound that goes with it."
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"name": "effect_ended",
|
|
386
|
+
"hook_kind": "event",
|
|
387
|
+
"summary": "Told when an effect's last particle is gone, or it was stopped, with { playId, effectName }."
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"name": "surface_kind_at",
|
|
391
|
+
"hook_kind": "decision",
|
|
392
|
+
"summary": "Asked what the surface is where a free effect or an impact lands, with the piece's guess (stone) and { positionM, reason, bodyId }: answer one of the surface kinds (stone, concrete, metal, wood, dirt, gravel, sand, grass, mud, water, snow, ice, glass, carpet, flesh), from the game's own level."
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"name": "shake",
|
|
396
|
+
"hook_kind": "event",
|
|
397
|
+
"summary": "Told when an effect shakes the camera, with { strengthPct, durationSec }, already faded by its distance: for a game with a camera of its own. With the camera piece given, the piece shakes it itself."
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"name": "quality_changed",
|
|
401
|
+
"hook_kind": "event",
|
|
402
|
+
"summary": "Told when the quality level in use changes, with { qualityLevel, reason }: reason is setting, lighting_quality or slow_frames."
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"name": "weather_changed",
|
|
406
|
+
"hook_kind": "event",
|
|
407
|
+
"summary": "Told while the weather turns and when it settles, with { rainPct, snowPct, fogPct, windSpeedMPerSec, windDirectionDeg, isSettled }: where a game's sound and sky follow it."
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"name": "effects_thinned",
|
|
411
|
+
"hook_kind": "event",
|
|
412
|
+
"summary": "Told, at most once a second, when the device's budget was spent and effects played thinner or not at all, with { effectName, keptPct }."
|
|
413
|
+
}
|
|
414
|
+
]
|
|
415
|
+
}
|