Skip to content

Commit 0bf3386

Browse files
committed
17.3.0 dist files
1 parent 5d52e00 commit 0bf3386

File tree

551 files changed

+2345
-2300
lines changed

Some content is hidden

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

551 files changed

+2345
-2300
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.2.0
2+
* melonJS Game Engine - v17.3.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.2.0
2+
* melonJS Game Engine - v17.3.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.2.0
2+
* melonJS Game Engine - v17.3.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.2.0
2+
* melonJS Game Engine - v17.3.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.2.0
2+
* melonJS Game Engine - v17.3.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: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* melonJS Game Engine - v17.2.0
2+
* melonJS Game Engine - v17.3.0
33
* http://www.melonjs.org
44
* melonjs is licensed under the MIT License.
55
* http://www.opensource.org/licenses/mit-license
@@ -14,7 +14,7 @@ import timer from '../system/timer.js';
1414
import state from '../state/state.js';
1515
import World from '../physics/world.js';
1616
import { onresize } from './resize.js';
17-
import { defaultSettings } from './settings.js';
17+
import { ApplicationSettings } from './settings.js';
1818
import { consoleHeader } from './header.js';
1919
import { WEBGL, CANVAS, AUTO } from '../const.js';
2020

@@ -27,7 +27,7 @@ class Application {
2727
/**
2828
* @param {number} width - The width of the canvas viewport
2929
* @param {number} height - The height of the canvas viewport
30-
* @param {Application.Settings} [options] - The optional parameters for the application and default renderer
30+
* @param {ApplicationSettings} [options] - The optional parameters for the application and default renderer
3131
* @throws Will throw an exception if it fails to instantiate a renderer
3232
*/
3333
constructor(width, height, options) {
@@ -83,7 +83,7 @@ class Application {
8383

8484
/**
8585
* the given settings used when creating this application
86-
* @type {Application.settings}
86+
* @type {ApplicationSettings}
8787
*/
8888
this.settings = undefined;
8989

@@ -144,11 +144,11 @@ class Application {
144144
* init the game instance (create a physic world, update starting time, etc..)
145145
* @param {number} width - The width of the canvas viewport
146146
* @param {number} height - The height of the canvas viewport
147-
* @param {Application.Settings} [options] - The optional parameters for the application and default renderer
147+
* @param {ApplicationSettings} [options] - The optional parameters for the application and default renderer
148148
*/
149149
init(width, height, options) {
150150

151-
this.settings = Object.assign(defaultSettings, options || {});
151+
this.settings = Object.assign(ApplicationSettings, options || {});
152152

153153
// sanitize potential given parameters
154154
this.settings.width = width;

dist/melonjs.mjs/application/header.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.2.0
2+
* melonJS Game Engine - v17.3.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/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.2.0
2+
* melonJS Game Engine - v17.3.0
33
* http://www.melonjs.org
44
* melonjs is licensed under the MIT License.
55
* http://www.opensource.org/licenses/mit-license
Lines changed: 29 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,13 @@
11
/*!
2-
* melonJS Game Engine - v17.2.0
2+
* melonJS Game Engine - v17.3.0
33
* http://www.melonjs.org
44
* melonjs is licensed under the MIT License.
55
* http://www.opensource.org/licenses/mit-license
66
* @copyright (C) 2011 - 2024 Olivier Biot (AltByte Pte Ltd)
77
*/
8-
// default settings
9-
const defaultSettings = {
10-
parent : undefined,
11-
renderer : 2, // AUTO
12-
autoScale : false,
13-
scale : 1.0,
14-
scaleMethod : "manual",
15-
scaleTarget : undefined,
16-
transparent : false,
17-
premultipliedAlpha: true,
18-
blendMode : "normal",
19-
physic : "builtin",
20-
antiAlias : false,
21-
failIfMajorPerformanceCaveat : true,
22-
subPixel : false,
23-
preferWebGL1 : false,
24-
powerPreference : "default",
25-
verbose : false,
26-
consoleHeader : true,
27-
legacy : false,
28-
canvas : undefined
29-
};
30-
318
/**
329
* Application & Renderer Settings definition.
33-
* @typedef {object} Settings
10+
* @typedef {Object} ApplicationSettings
3411
* @property {string|HTMLElement} [parent=document.body] - the DOM parent element to hold the canvas in the HTML file
3512
* @property {HTMLCanvasElement} [canvas] - an existing canvas element to use as the renderer target (by default melonJS will create its own canvas based on given parameters)
3613
* @property {number|Renderer} [renderer=AUTO] - renderer to use (CANVAS, WEBGL, AUTO), or a custom renderer class
@@ -57,12 +34,32 @@ const defaultSettings = {
5734
* @property {boolean} [transparent=false] - whether to allow transparent pixels in the front buffer (screen).
5835
* @property {boolean} [antiAlias=false] - whether to enable or not video scaling interpolation
5936
* @property {boolean} [consoleHeader=true] - whether to display melonJS version and basic device information in the console
60-
* @param {number} [options.zoomX=width] - The actual width of the canvas with scaling applied
61-
* @param {number} [options.zoomY=height] - The actual height of the canvas with scaling applied
62-
* @param {Compositor} [options.compositor] - a custom compositor class (WebGL only)
63-
* @param {string} [option.physic="builtin"] - the physic system to use (default: "builtin", or "none" to disable builtin physic)
64-
* @see Application
65-
* @memberof Application
37+
* @property {number} [zoomX=width] - The actual width of the canvas with scaling applied
38+
* @property {number} [zoomY=height] - The actual height of the canvas with scaling applied
39+
* @property {Compositor} [compositor] - a custom compositor class (WebGL only)
40+
* @property {string} [physic="builtin"] - the physic system to use (default: "builtin", or "none" to disable builtin physic)
6641
*/
42+
const ApplicationSettings = {
43+
parent : undefined,
44+
canvas : undefined,
45+
renderer : 2, // AUTO
46+
autoScale : false,
47+
scale : 1.0,
48+
scaleMethod : "manual",
49+
scaleTarget : undefined,
50+
preferWebGL1 : false,
51+
depthTest: "sorting",
52+
powerPreference : "default",
53+
transparent : false,
54+
antiAlias : false,
55+
consoleHeader : true,
56+
premultipliedAlpha: true,
57+
blendMode : "normal",
58+
physic : "builtin",
59+
failIfMajorPerformanceCaveat : true,
60+
subPixel : false,
61+
verbose : false,
62+
legacy : false
63+
};
6764

68-
export { defaultSettings };
65+
export { ApplicationSettings };

dist/melonjs.mjs/audio/audio.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.2.0
2+
* melonJS Game Engine - v17.3.0
33
* http://www.melonjs.org
44
* melonjs is licensed under the MIT License.
55
* http://www.opensource.org/licenses/mit-license

0 commit comments

Comments
 (0)