@adatechnology/game-vfx-three 0.10.6 → 0.10.8
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/dist/index.global.js +21 -6
- package/dist/index.global.js.map +1 -1
- package/package.json +3 -3
package/dist/index.global.js
CHANGED
|
@@ -3187,6 +3187,7 @@ var GameVfxThree = (() => {
|
|
|
3187
3187
|
__publicField(this, "centerZ", 0);
|
|
3188
3188
|
__publicField(this, "puddles", WORKSHOP_PUDDLES);
|
|
3189
3189
|
__publicField(this, "puddleAt");
|
|
3190
|
+
__publicField(this, "coverTopAt");
|
|
3190
3191
|
}
|
|
3191
3192
|
/** `initRain` (W321): `count` streaks (thinned by the quality), each drawn at a random place in the box. */
|
|
3192
3193
|
init(count, wind) {
|
|
@@ -3232,6 +3233,13 @@ var GameVfxThree = (() => {
|
|
|
3232
3233
|
positions[o + 3] += slant;
|
|
3233
3234
|
positions[o + 1] -= fall;
|
|
3234
3235
|
positions[o + 4] -= fall;
|
|
3236
|
+
if (this.coverTopAt) {
|
|
3237
|
+
const top = this.coverTopAt(positions[o], positions[o + 2]);
|
|
3238
|
+
if (top !== void 0 && positions[o + 4] < top) {
|
|
3239
|
+
this.restart(o);
|
|
3240
|
+
continue;
|
|
3241
|
+
}
|
|
3242
|
+
}
|
|
3235
3243
|
const ground = context.groundAt(positions[o], positions[o + 2]);
|
|
3236
3244
|
if (positions[o + 4] < ground) {
|
|
3237
3245
|
const x = positions[o];
|
|
@@ -3247,10 +3255,7 @@ var GameVfxThree = (() => {
|
|
|
3247
3255
|
}
|
|
3248
3256
|
}
|
|
3249
3257
|
}
|
|
3250
|
-
|
|
3251
|
-
const ny = random.between(REENTRY_HEIGHT[0], REENTRY_HEIGHT[1]);
|
|
3252
|
-
const nz = random.between(BOX_Z[0], BOX_Z[1]) + this.centerZ;
|
|
3253
|
-
this.set(o, nx, ny, nz);
|
|
3258
|
+
this.restart(o);
|
|
3254
3259
|
}
|
|
3255
3260
|
}
|
|
3256
3261
|
}
|
|
@@ -3258,6 +3263,13 @@ var GameVfxThree = (() => {
|
|
|
3258
3263
|
clear() {
|
|
3259
3264
|
this.on = false;
|
|
3260
3265
|
}
|
|
3266
|
+
restart(offset) {
|
|
3267
|
+
const { random } = this.engine;
|
|
3268
|
+
const nx = random.between(BOX_X[0], BOX_X[1]) + this.centerX;
|
|
3269
|
+
const ny = random.between(REENTRY_HEIGHT[0], REENTRY_HEIGHT[1]);
|
|
3270
|
+
const nz = random.between(BOX_Z[0], BOX_Z[1]) + this.centerZ;
|
|
3271
|
+
this.set(offset, nx, ny, nz);
|
|
3272
|
+
}
|
|
3261
3273
|
set(offset, x, y, z) {
|
|
3262
3274
|
const positions = this.positions;
|
|
3263
3275
|
positions[offset] = x;
|
|
@@ -4050,8 +4062,11 @@ var GameVfxThree = (() => {
|
|
|
4050
4062
|
aliasOf(ENGINE_SMOKE, "vehicle_fire", { params: { id: "condition", options: ["100", "60", "30", "10"], default: 3 }, loop: 12 }),
|
|
4051
4063
|
/** The exhaust of a car under way: `engine_smoke` in the best condition, for half a second so a moving car asks again. */
|
|
4052
4064
|
aliasOf(ENGINE_SMOKE, "vehicle_exhaust", { params: { id: "condition", options: ["100", "60", "30", "10"], default: 0 }, loop: 0.5 }),
|
|
4053
|
-
/**
|
|
4054
|
-
|
|
4065
|
+
/**
|
|
4066
|
+
* A hole in a tank: the page's drips, falling from the point it is played at (the hole). No pool of its own: the pool is the liquid that came out, laid by the
|
|
4067
|
+
* host's fluid world as it leaks (it grows with the volume and spreads by the liquid's own kind), not a drawing of a size the page chose.
|
|
4068
|
+
*/
|
|
4069
|
+
aliasOf(FUEL_LEAK_ONLY, "vehicle_leak", { anchor: TANK, timeline: [] }),
|
|
4055
4070
|
/** The leak caught fire (an incendiary or tracer round, a spark, a fire near): the page's whole sequence, the fire running along the pool to the tank and the blast. */
|
|
4056
4071
|
aliasOf(FUEL_LEAK, "vehicle_leak_ignited", {})
|
|
4057
4072
|
];
|