You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @property {boolean} [antialias=true] - When set to `true`, WebGL uses linear interpolation to draw scaled or rotated textures, giving a smooth appearance. When set to `false`, WebGL uses nearest-neighbor interpolation, giving a crisper appearance. `false` also disables antialiasing of the game canvas itself, if the browser supports it, when the game canvas is scaled.
88
+
* @property {boolean} [pixelArt=false] - Sets `antialias` and `roundPixels` to true. This is the best setting for pixel-art games.
89
89
* @property {boolean} [autoResize=true] - Automatically resize the Game Canvas if you resize the renderer.
* @property {string} [powerPreference='default'] - "high-performance", "low-power" or "default"
90
+
* @property {boolean} [roundPixels=false] - Draw texture-based Game Objects at only whole-integer positions. Game Objects without textures, like Graphics, ignore this property.
91
+
* @property {boolean} [transparent=false] - Whether the game canvas will be transparent.
92
+
* @property {boolean} [clearBeforeRender=true] - Whether the game canvas will be cleared between each rendering frame.
93
+
* @property {boolean} [premultipliedAlpha=true] - In WebGL mode, the drawing buffer contains colors with pre-multiplied alpha.
94
+
* @property {boolean} [preserveDrawingBuffer=false] - In WebGL mode, the drawing buffer won't be cleared automatically each frame.
95
+
* @property {boolean} [failIfMajorPerformanceCaveat=false] - Let the browser abort creating a WebGL context if it judges performance would be unacceptable.
96
+
* @property {string} [powerPreference='default'] - "high-performance", "low-power" or "default". A hint to the browser on how much device power the game might use.
97
97
* @property {integer} [batchSize=2000] - The default WebGL batch size.
98
98
*/
99
99
@@ -104,8 +104,8 @@ var ValueToColor = require('../display/color/ValueToColor');
104
104
* @property {(integer|string)} [height=768] - The base height of your game.
105
105
* @property {integer} [zoom=1] - The zoom value of the game canvas.
106
106
* @property {number} [resolution=1] - The rendering resolution of the canvas.
107
-
* @property {any} [parent] - The parent DOM element.
108
-
* @property {integer} [mode=0] - The scale mode to apply to the canvas.
107
+
* @property {(HTMLElement|string)} [parent] - The DOM element that will contain the game canvas, or its `id`. If null (the default) or if the named element doesn't exist, the game canvas is inserted directly into the document body.
108
+
* @property {integer} [mode=0] - The scale mode to apply to the canvas. SHOW_ALL, EXACT_FIT, USER_SCALE, or RESIZE.
109
109
* @property {integer} [minWidth] - The minimum width the canvas can be scaled down to.
110
110
* @property {integer} [minHeight] - The minimum height the canvas can be scaled down to.
111
111
* @property {integer} [maxWidth] - The maximum width the canvas can be scaled up to.
@@ -115,22 +115,22 @@ var ValueToColor = require('../display/color/ValueToColor');
* @property {BootCallback} [preBoot=NOOP] - A function to run at the start of the boot sequence.
119
+
* @property {BootCallback} [postBoot=NOOP] - A function to run at the end of the boot sequence. At this point, all the game systems have started and plugins have been loaded.
* @property {string} [baseURL] - An URL used to resolve paths given to the loader. Example: 'http://labs.phaser.io/assets/'.
126
+
* @property {string} [path] - An URL path used to resolve relative paths given to the loader. Example: 'images/sprites/'.
127
+
* @property {integer} [maxParallelDownloads=32] - The maximum number of resources the loader will start loading at once.
128
+
* @property {(string|undefined)} [crossOrigin=undefined] - 'anonymous', 'use-credentials', or `undefined`. If you're not making cross-origin requests, leave this as `undefined`. See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes}.
129
+
* @property {string} [responseType] - The response type of the XHR request, e.g. `blob`, `text`, etc.
130
+
* @property {boolean} [async=true] - Should the XHR request use async or not?
131
+
* @property {string} [user] - Optional username for the XHR request.
132
+
* @property {string} [password] - Optional password for the XHR request.
* @property {(integer|string)} [width=1024] - The width of the game, in game pixels.
190
+
* @property {(integer|string)} [height=768] - The height of the game, in game pixels.
191
+
* @property {number} [zoom=1] - Simple scale applied to the game canvas. 2 is double size, 0.5 is half size, etc.
192
+
* @property {number} [resolution=1] - The size of each game pixel, in canvas pixels. Values larger than 1 are "high" resolution.
193
+
* @property {number} [type=CONST.AUTO] - Which renderer to use. Phaser.AUTO, Phaser.CANVAS, Phaser.HEADLESS, or Phaser.WEBGL. AUTO picks WEBGL if available, otherwise CANVAS.
194
+
* @property {(HTMLElement|string)} [parent=null] - The DOM element that will contain the game canvas, or its `id`. If null (the default) or if the named element doesn't exist, the game canvas is inserted directly into the document body.
179
195
* @property {HTMLCanvasElement} [canvas=null] - Provide your own Canvas element for Phaser to use instead of creating one.
* @property {object} [scene=null] - A scene or scenes to add to the game. If several are given, the first is started; the remainder are started only if they have { active: true }.
199
+
* @property {string[]} [seed] - Seed for the random number generator.
200
+
* @property {string} [title=''] - The title of the game. Shown in the browser console.
201
+
* @property {string} [url='http://phaser.io'] - The URL of the game. Shown in the browser console.
202
+
* @property {string} [version=''] - The version of the game. Shown in the browser console.
203
+
* @property {boolean} [autoFocus=true] - Automatically call window.focus() when the game boots. Usually necessary to capture input events if the game is in a separate frame.
204
+
* @property {(boolean|InputConfig)} [input] - Input configuration, or `false` to disable all game input.
205
+
* @property {boolean} [disableContextMenu=false] - Disable the browser's default 'contextmenu' event (usually triggered by a right-button mouse click).
206
+
* @property {(boolean|BannerConfig)} [banner=false] - Configuration for the banner printed in the browser console when the game starts.
191
207
* @property {DOMContainerConfig} [dom] - The DOM Container configuration object.
0 commit comments