Skip to content

Commit dd4e000

Browse files
committed
Added antialias config value
1 parent 78b72c5 commit dd4e000

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

src/boot/Config.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,15 @@ var ValueToColor = require('../display/color/ValueToColor');
7474
* @property {string} [banner.text='#ffffff'] - [description]
7575
* @property {array} [banner.background] - [description]
7676
* @property {FPSConfig} [?fps] - [description]
77+
* @property {boolean} [antialias=true] - [description]
7778
* @property {boolean} [pixelArt=false] - [description]
7879
* @property {boolean} [autoResize=false] - [description]
7980
* @property {boolean} [roundPixels=false] - [description]
80-
* @property {boolean} [transparent=false] - [description]
81+
* @property {boolean} [transparent=true] - [description]
8182
* @property {boolean} [clearBeforeRender=true] - [description]
83+
* @property {boolean} [preserveDrawingBuffer=false] - [description]
84+
* @property {boolean} [failIfMajorPerformanceCaveat=false] - [description]
85+
* @property {boolean} [powerPreference='default'] - "high-performance", "low-power" or "default"
8286
* @property {string|number} [backgroundColor=0x000000] - [description]
8387
* @property {object} [?callbacks] - [description]
8488
* @property {function} [callbacks.preBoot=NOOP] - [description]
@@ -182,15 +186,15 @@ var Config = new Class({
182186
this.fps = GetValue(config, 'fps', null);
183187

184188
// Renderer Settings
185-
this.pixelArt = GetValue(config, 'pixelArt', true);
189+
this.antialias = GetValue(config, 'pixelArt', true);
190+
this.pixelArt = GetValue(config, 'pixelArt', false);
186191
this.autoResize = GetValue(config, 'autoResize', false);
187192
this.roundPixels = GetValue(config, 'roundPixels', false);
188193
this.transparent = GetValue(config, 'transparent', true);
189194
this.clearBeforeRender = GetValue(config, 'clearBeforeRender', true);
190195
this.preserveDrawingBuffer = GetValue(config, 'preserveDrawingBuffer', false);
191196
this.failIfMajorPerformanceCaveat = GetValue(config, 'failIfMajorPerformanceCaveat', false);
192-
193-
// "high-performance", "low-power" or "default".
197+
// "high-performance", "low-power" or "default"
194198
this.powerPreference = GetValue(config, 'powerPreference', 'default');
195199

196200
var bgc = GetValue(config, 'backgroundColor', 0);

src/renderer/webgl/WebGLRenderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var WebGLRenderer = new Class({
3939
var contextCreationConfig = {
4040
alpha: game.config.transparent,
4141
depth: false, // enable when 3D is added in the future
42-
antialias: game.config.pixelArt,
42+
antialias: game.config.antialias,
4343
premultipliedAlpha: game.config.transparent,
4444
stencil: true,
4545
preserveDrawingBuffer: game.config.preserveDrawingBuffer,

0 commit comments

Comments
 (0)