mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 05:03:37 +00:00
Expose constants. Fix #3387
This commit is contained in:
parent
fbec8f978c
commit
a524dc44b0
6 changed files with 52 additions and 6 deletions
|
@ -10,6 +10,8 @@
|
||||||
* Game.Config.powerPreference is now passed to the WebGL Renderer (default `default`).
|
* Game.Config.powerPreference is now passed to the WebGL Renderer (default `default`).
|
||||||
* Game.Config.antialias is now passed to the WebGL Renderer as the antialias context property (default `true`).
|
* Game.Config.antialias is now passed to the WebGL Renderer as the antialias context property (default `true`).
|
||||||
* Game.Config.pixelArt is now only used by the WebGL Renderer when creating new textures.
|
* Game.Config.pixelArt is now only used by the WebGL Renderer when creating new textures.
|
||||||
|
* Game.Config.premultipliedAlpha is now passed to the WebGL Renderer as the premultipliedAlpha context property (default `true`).
|
||||||
|
* You can now specify all of the renderer config options within a `render` object in the config. If no `render` object is found, it will scan the config object directly for the properties.
|
||||||
* Group.create has a new optional argument: `active` which will set the active state of the child being created (thanks @samme)
|
* Group.create has a new optional argument: `active` which will set the active state of the child being created (thanks @samme)
|
||||||
* Group.create has a new optional argument: `active` which will set the active state of the child being created (thanks @samme)
|
* Group.create has a new optional argument: `active` which will set the active state of the child being created (thanks @samme)
|
||||||
* Group.createMultiple now allows you to include the `active` property in the config object (thanks @samme)
|
* Group.createMultiple now allows you to include the `active` property in the config object (thanks @samme)
|
||||||
|
@ -18,7 +20,6 @@
|
||||||
* Arcade Physics has the new methods `wrap`, `wrapArray` and `wrapObject` which allow you to wrap physics bodies around the world bounds (thanks @samme)
|
* Arcade Physics has the new methods `wrap`, `wrapArray` and `wrapObject` which allow you to wrap physics bodies around the world bounds (thanks @samme)
|
||||||
* The Tweens Timeline has a new method: `makeActive` which delegates control to the Tween Manager (thanks @allanbreyes)
|
* The Tweens Timeline has a new method: `makeActive` which delegates control to the Tween Manager (thanks @allanbreyes)
|
||||||
|
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
||||||
* Fixed the Debug draw of a scaled circle body in Arcade Physics (thanks @pixelpicosean)
|
* Fixed the Debug draw of a scaled circle body in Arcade Physics (thanks @pixelpicosean)
|
||||||
|
@ -37,6 +38,11 @@
|
||||||
* The Text testString has changed from `|MÉqgy` to `|MÉqgy`.
|
* The Text testString has changed from `|MÉqgy` to `|MÉqgy`.
|
||||||
* The WebGLRenderer width and height values are now floored when multiplied by the resolution.
|
* The WebGLRenderer width and height values are now floored when multiplied by the resolution.
|
||||||
* The WebGL Context now sets `premultipliedAlpha` to `true` by default, this prevents the WebGL context from rendering as plain white under certain versions of macOS Safari.
|
* The WebGL Context now sets `premultipliedAlpha` to `true` by default, this prevents the WebGL context from rendering as plain white under certain versions of macOS Safari.
|
||||||
|
* The Phaser.Display.Align constants are now exposed on the namespace. Fix #3387 (thanks @samme)
|
||||||
|
* The Phaser.Loader constants are now exposed on the namespace. Fix #3387 (thanks @samme)
|
||||||
|
* The Phaser.Physics.Arcade constants are now exposed on the namespace. Fix #3387 (thanks @samme)
|
||||||
|
* The Phaser.Scene constants are now exposed on the namespace. Fix #3387 (thanks @samme)
|
||||||
|
* The Phaser.Tweens constants are now exposed on the namespace. Fix #3387 (thanks @samme)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -4,13 +4,21 @@
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
var CONST = require('./const');
|
||||||
|
var Extend = require('../../utils/object/Extend');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @namespace Phaser.Display.Align
|
* @namespace Phaser.Display.Align
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module.exports = {
|
var Align = {
|
||||||
|
|
||||||
In: require('./in'),
|
In: require('./in'),
|
||||||
To: require('./to')
|
To: require('./to')
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Merge in the consts
|
||||||
|
Align = Extend(false, Align, CONST);
|
||||||
|
|
||||||
|
module.exports = Align;
|
||||||
|
|
|
@ -4,11 +4,14 @@
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
var CONST = require('./const');
|
||||||
|
var Extend = require('../utils/object/Extend');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @namespace Phaser.Loader
|
* @namespace Phaser.Loader
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module.exports = {
|
var Loader = {
|
||||||
|
|
||||||
FileTypes: require('./filetypes'),
|
FileTypes: require('./filetypes'),
|
||||||
|
|
||||||
|
@ -21,3 +24,8 @@ module.exports = {
|
||||||
XHRSettings: require('./XHRSettings')
|
XHRSettings: require('./XHRSettings')
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Merge in the consts
|
||||||
|
Loader = Extend(false, Loader, CONST);
|
||||||
|
|
||||||
|
module.exports = Loader;
|
||||||
|
|
|
@ -4,11 +4,14 @@
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
var CONST = require('./const');
|
||||||
|
var Extend = require('../../utils/object/Extend');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @namespace Phaser.Physics.Arcade
|
* @namespace Phaser.Physics.Arcade
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module.exports = {
|
var Arcade = {
|
||||||
|
|
||||||
ArcadePhysics: require('./ArcadePhysics'),
|
ArcadePhysics: require('./ArcadePhysics'),
|
||||||
Body: require('./Body'),
|
Body: require('./Body'),
|
||||||
|
@ -22,3 +25,8 @@ module.exports = {
|
||||||
World: require('./World')
|
World: require('./World')
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Merge in the consts
|
||||||
|
Arcade = Extend(false, Arcade, CONST);
|
||||||
|
|
||||||
|
module.exports = Arcade;
|
||||||
|
|
|
@ -4,11 +4,14 @@
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
var CONST = require('./const');
|
||||||
|
var Extend = require('../utils/object/Extend');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @namespace Phaser.Scenes
|
* @namespace Phaser.Scenes
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module.exports = {
|
var Scene = {
|
||||||
|
|
||||||
SceneManager: require('./SceneManager'),
|
SceneManager: require('./SceneManager'),
|
||||||
ScenePlugin: require('./ScenePlugin'),
|
ScenePlugin: require('./ScenePlugin'),
|
||||||
|
@ -16,3 +19,8 @@ module.exports = {
|
||||||
Systems: require('./Systems')
|
Systems: require('./Systems')
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Merge in the consts
|
||||||
|
Scene = Extend(false, Scene, CONST);
|
||||||
|
|
||||||
|
module.exports = Scene;
|
||||||
|
|
|
@ -4,11 +4,14 @@
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
var CONST = require('./tween/const');
|
||||||
|
var Extend = require('../utils/object/Extend');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @namespace Phaser.Tweens
|
* @namespace Phaser.Tweens
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module.exports = {
|
var Tweens = {
|
||||||
|
|
||||||
Builders: require('./builders'),
|
Builders: require('./builders'),
|
||||||
|
|
||||||
|
@ -18,3 +21,8 @@ module.exports = {
|
||||||
Timeline: require('./Timeline')
|
Timeline: require('./Timeline')
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Merge in the consts
|
||||||
|
Tweens = Extend(false, Tweens, CONST);
|
||||||
|
|
||||||
|
module.exports = Tweens;
|
||||||
|
|
Loading…
Reference in a new issue