@adatechnology/game-destruction-three 0.19.1 → 0.20.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.
- package/dist/index.d.ts +3 -1
- package/dist/index.global.js +23 -3
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -4813,6 +4813,15 @@ var FIRE_LOOP = {
|
|
|
4813
4813
|
volume: 0,
|
|
4814
4814
|
sources: ["sdk: the roar under the crackles of a fire"]
|
|
4815
4815
|
};
|
|
4816
|
+
var ROCKET_MOTOR_LOOP = {
|
|
4817
|
+
id: "rocket_motor_loop",
|
|
4818
|
+
bus: "world",
|
|
4819
|
+
order: "chain_loop",
|
|
4820
|
+
source: { kind: "noise", loop: true },
|
|
4821
|
+
filters: { mode: "serial", bank: [{ type: "highpass", frequency: { set: 250 }, q: 0.6 }, { type: "lowpass", frequency: { set: 5200 }, q: 0.5 }] },
|
|
4822
|
+
volume: 0,
|
|
4823
|
+
sources: ["sdk: the motor of a rocket in flight (a wide hiss with a low body, steady until the warhead goes off)"]
|
|
4824
|
+
};
|
|
4816
4825
|
var SMOKE_HISS_LOOP = {
|
|
4817
4826
|
id: "smoke_grenade_hiss",
|
|
4818
4827
|
bus: "world",
|
|
@@ -5020,7 +5029,7 @@ var IMPACT_SOUNDS = [
|
|
|
5020
5029
|
impact("plastic_crack", [noise2({ type: "bandpass", f: 1800, q: 2, d: 0.06, vol: 0.75 }), tone2({ f: [450, 550], f2: 250, d: 0.05, vol: 0.22 })]),
|
|
5021
5030
|
impact("mdf_crumble", [noise2({ type: "lowpass", f: 700, d: 0.25, vol: 0.75, wet: 0.2 }), ...many2(4, () => noise2({ type: "lowpass", f: 500, d: 0.05, vol: 0.32, delay: [0.05, 0.3] }))])
|
|
5022
5031
|
];
|
|
5023
|
-
var DESTRUCTION_SOUND_BANK = { id: "destruction_three", sounds: [...SCENE_SOUNDS, ...DRAG_SOUNDS, ...LEAF_SOUNDS, ...IMPACT_SOUNDS, EXPLOSION_BOOM, ...BLAST_SOUNDS, ...FIRE_SOUNDS, GRENADE_PIN_PULL], loops: [BURN_LOOP, FIRE_LOOP, ...FIRE_FUEL_LOOPS, SMOKE_HISS_LOOP] };
|
|
5032
|
+
var DESTRUCTION_SOUND_BANK = { id: "destruction_three", sounds: [...SCENE_SOUNDS, ...DRAG_SOUNDS, ...LEAF_SOUNDS, ...IMPACT_SOUNDS, EXPLOSION_BOOM, ...BLAST_SOUNDS, ...FIRE_SOUNDS, GRENADE_PIN_PULL], loops: [BURN_LOOP, FIRE_LOOP, ...FIRE_FUEL_LOOPS, SMOKE_HISS_LOOP, ROCKET_MOTOR_LOOP] };
|
|
5024
5033
|
|
|
5025
5034
|
// src/audio/sound.ts
|
|
5026
5035
|
import { FOLEY_BANK, GAME_SFX_BANK } from "@adatechnology/game-audio";
|
|
@@ -5317,6 +5326,7 @@ var BLAST_FIRE_SAMPLES = {
|
|
|
5317
5326
|
explosion_big: blast2(1),
|
|
5318
5327
|
explosion_car: blast2(1),
|
|
5319
5328
|
explosion_flashbang: blast2(1),
|
|
5329
|
+
explosion_rocket: blast2(1),
|
|
5320
5330
|
molotov_break_ignite: blast2(0.8),
|
|
5321
5331
|
// the far takes are already muffled: no extra distance lowpass
|
|
5322
5332
|
explosion_far: { bus: "world", gain: 1, falloff: BLAST_FAR_FALLOFF, cutoffK: 0, priority: 2 },
|
|
@@ -5333,6 +5343,8 @@ var BLAST_FIRE_SAMPLES = {
|
|
|
5333
5343
|
fire_loop_plastic: { bus: "world", gain: 1, loop: { crossfade: 0.6 } },
|
|
5334
5344
|
// a smoke canister venting: a gas hiss chained like the fire roar (the level comes from the room, by how near the burning canisters are)
|
|
5335
5345
|
smoke_grenade_hiss: { bus: "world", gain: 1, loop: { crossfade: 0.8 } },
|
|
5346
|
+
// the motor of a rocket in flight, chained like the roar of a fire (the room sets the level by how near the rocket is)
|
|
5347
|
+
rocket_motor_loop: { bus: "world", gain: 1, loop: { crossfade: 0.5 } },
|
|
5336
5348
|
// the ring and the spoon of a hand grenade: a small metal latch
|
|
5337
5349
|
grenade_pin_pull: fire(0.5)
|
|
5338
5350
|
};
|
|
@@ -5370,6 +5382,7 @@ export {
|
|
|
5370
5382
|
IMPACT_FAMILY_TAGS,
|
|
5371
5383
|
IMPACT_SOUNDS,
|
|
5372
5384
|
IMPACT_SOUND_KEYS,
|
|
5385
|
+
ROCKET_MOTOR_LOOP,
|
|
5373
5386
|
SCENE_SOUNDS,
|
|
5374
5387
|
SMOKE_HISS_LOOP,
|
|
5375
5388
|
blastFireSampleBank,
|