Skip to content

Commit 3d34143

Browse files
committed
17.2.0 dist files
1 parent 51ad03d commit 3d34143

File tree

548 files changed

+2580
-2168
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

548 files changed

+2580
-2168
lines changed

dist/melonjs.mjs/_virtual/_commonjsHelpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* melonJS Game Engine - v17.1.0
2+
* melonJS Game Engine - v17.2.0
33
* http://www.melonjs.org
44
* melonjs is licensed under the MIT License.
55
* http://www.opensource.org/licenses/mit-license

dist/melonjs.mjs/_virtual/earcut.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* melonJS Game Engine - v17.1.0
2+
* melonJS Game Engine - v17.2.0
33
* http://www.melonjs.org
44
* melonjs is licensed under the MIT License.
55
* http://www.opensource.org/licenses/mit-license

dist/melonjs.mjs/_virtual/howler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* melonJS Game Engine - v17.1.0
2+
* melonJS Game Engine - v17.2.0
33
* http://www.melonjs.org
44
* melonjs is licensed under the MIT License.
55
* http://www.opensource.org/licenses/mit-license

dist/melonjs.mjs/_virtual/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* melonJS Game Engine - v17.1.0
2+
* melonJS Game Engine - v17.2.0
33
* http://www.melonjs.org
44
* melonjs is licensed under the MIT License.
55
* http://www.opensource.org/licenses/mit-license

dist/melonjs.mjs/_virtual/re.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* melonJS Game Engine - v17.1.0
2+
* melonJS Game Engine - v17.2.0
33
* http://www.melonjs.org
44
* melonjs is licensed under the MIT License.
55
* http://www.opensource.org/licenses/mit-license

dist/melonjs.mjs/application/application.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* melonJS Game Engine - v17.1.0
2+
* melonJS Game Engine - v17.2.0
33
* http://www.melonjs.org
44
* melonjs is licensed under the MIT License.
55
* http://www.opensource.org/licenses/mit-license
@@ -187,7 +187,7 @@ class Application {
187187

188188
// identify parent element and/or the html target for resizing
189189
this.parentElement = getElement(this.settings.parent);
190-
if (typeof this.settings.scaleTarget !== "undefined" ) {
190+
if (typeof this.settings.scaleTarget !== "undefined") {
191191
this.settings.scaleTarget = getElement(this.settings.scaleTarget);
192192
}
193193

dist/melonjs.mjs/application/header.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* melonJS Game Engine - v17.1.0
2+
* melonJS Game Engine - v17.2.0
33
* http://www.melonjs.org
44
* melonjs is licensed under the MIT License.
55
* http://www.opensource.org/licenses/mit-license
@@ -27,7 +27,7 @@ function consoleHeader(app) {
2727
language
2828
);
2929

30-
console.log( "resolution: " + "requested " + app.settings.width + "x" + app.settings.height +
30+
console.log("resolution: " + "requested " + app.settings.width + "x" + app.settings.height +
3131
", got " + app.renderer.width + "x" + app.renderer.height
3232
);
3333
}

dist/melonjs.mjs/application/resize.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* melonJS Game Engine - v17.1.0
2+
* melonJS Game Engine - v17.2.0
33
* http://www.melonjs.org
44
* melonjs is licensed under the MIT License.
55
* http://www.opensource.org/licenses/mit-license

dist/melonjs.mjs/application/settings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* melonJS Game Engine - v17.1.0
2+
* melonJS Game Engine - v17.2.0
33
* http://www.melonjs.org
44
* melonjs is licensed under the MIT License.
55
* http://www.opensource.org/licenses/mit-license

dist/melonjs.mjs/audio/audio.js

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* melonJS Game Engine - v17.1.0
2+
* melonJS Game Engine - v17.2.0
33
* http://www.melonjs.org
44
* melonjs is licensed under the MIT License.
55
* http://www.opensource.org/licenses/mit-license
@@ -283,14 +283,15 @@ function rate(sound_name, ...args) {
283283
* @memberof audio
284284
* @param {string} sound_name - audio clip name - case sensitive
285285
* @param {number} [pan] - the panning value - A value of -1.0 is all the way left and 1.0 is all the way right.
286+
* @param {number} [id] - the sound instance ID. If none is passed, all sounds in group will be changed.
286287
* @return {number} the current panning value
287288
* @example
288289
* me.audio.stereo("cling", -1);
289290
*/
290-
function stereo(sound_name, pan) {
291+
function stereo(sound_name, pan, id) {
291292
let sound = audioTracks[sound_name];
292293
if (sound && typeof sound !== "undefined") {
293-
return sound.stereo(pan);
294+
return sound.stereo(pan, id);
294295
} else {
295296
throw new Error("audio clip " + sound_name + " does not exist");
296297
}
@@ -303,12 +304,13 @@ function stereo(sound_name, pan) {
303304
* @param {Number} x - the x-position of the audio source.
304305
* @param {Number} y - the y-position of the audio source.
305306
* @param {Number} z - the z-position of the audio source.
307+
* @param {number} [id] - the sound instance ID. If none is passed, all sounds in group will be changed.
306308
* @return {Array} the current 3D spatial position: [x, y, z]
307309
*/
308-
function position(sound_name, x, y, z) {
310+
function position(sound_name, x, y, z, id) {
309311
let sound = audioTracks[sound_name];
310312
if (sound && typeof sound !== "undefined") {
311-
return sound.pos(x, y, z);
313+
return sound.pos(x, y, z, id);
312314
} else {
313315
throw new Error("audio clip " + sound_name + " does not exist");
314316
}
@@ -322,12 +324,13 @@ function position(sound_name, x, y, z) {
322324
* @param {Number} x - the x-orientation of the audio source.
323325
* @param {Number} y - the y-orientation of the audio source.
324326
* @param {Number} z - the z-orientation of the audio source.
327+
* @param {number} [id] - the sound instance ID. If none is passed, all sounds in group will be changed.
325328
* @return {Array} the current 3D spatial orientation: [x, y, z]
326329
*/
327-
function orientation(sound_name, x, y, z) {
330+
function orientation(sound_name, x, y, z, id) {
328331
let sound = audioTracks[sound_name];
329332
if (sound && typeof sound !== "undefined") {
330-
return sound.orientation(x, y, z);
333+
return sound.orientation(x, y, z, id);
331334
} else {
332335
throw new Error("audio clip " + sound_name + " does not exist");
333336
}
@@ -347,6 +350,7 @@ function orientation(sound_name, x, y, z) {
347350
* @param {string} [settings.refDistance=1] - A reference distance for reducing volume as source moves further from the listener. This is simply a variable of the distance model and has a different effect depending on which model is used and the scale of your coordinates. Generally, volume will be equal to 1 at this distance.
348351
* @param {string} [settings.rolloffFactor=1] - How quickly the volume reduces as source moves from listener. This is simply a variable of the distance model and can be in the range of `[0, 1]` with `linear` and `[0, ∞]` with `inverse` and `exponential`.
349352
* @param {string} [settings.panningModel="HRTF"] - Determines which spatialization algorithm is used to position audio. Can be `HRTF` or `equalpower`.
353+
* @param {number} [id] - the sound instance ID. If none is passed, all sounds in group will be changed.
350354
* @return {Object} current panner attributes.
351355
* @example
352356
* me.audio.panner("cling", {
@@ -356,10 +360,10 @@ function orientation(sound_name, x, y, z) {
356360
* distanceModel: 'exponential'
357361
* });
358362
*/
359-
function panner(sound_name, attributes) {
363+
function panner(sound_name, attributes, id) {
360364
let sound = audioTracks[sound_name];
361365
if (sound && typeof sound !== "undefined") {
362-
return sound.pannerAttr(attributes);
366+
return sound.pannerAttr(attributes, id);
363367
} else {
364368
throw new Error("audio clip " + sound_name + " does not exist");
365369
}

0 commit comments

Comments
 (0)