mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 07:04:31 +00:00
Phaser 2.3 Release Candidate 2.
This commit is contained in:
parent
83adc51698
commit
d80ec1ae6d
13 changed files with 211 additions and 79 deletions
|
@ -143,9 +143,9 @@ We've rolled our own fixes into our version of Pixi, ensuring we keep it as bug-
|
|||
* Emitter.flow now works in a slightly different (and more useful!) way. You can now specify a `quantity` and a `total`. The `quantity` controls how many particles are emitted every time the flow frequency is met. The `total` controls how many particles will be emitted in total. You can set `total` to be -1 and it will carry on emitting at the given frequency forever (also fixes #1598 thanks @brianbunch)
|
||||
* ArraySet.removeAll allows you to remove all members of an ArraySet and optionally call `destroy` on them as well.
|
||||
* GameObject.input.dragStartPoint now stores the coordinates the object was at when the drag started. This value is populated when the drag starts. It can be used to return an object to its pre-drag position, for example if it was dropped in an invalid place in-game.
|
||||
* Text.padding specifies a padding value which is added to the line width and height when calculating the Text size. ALlows you to add extra spacing if Phaser is unable to accurately determine the true font dimensions (#1561 #1518)
|
||||
* Text.padding specifies a padding value which is added to the line width and height when calculating the Text size. Allows you to add extra spacing if Phaser is unable to accurately determine the true font dimensions (#1561 #1518)
|
||||
* P2 Capsule Shapes now support BodyDebug drawing (thanks @englercj #1686)
|
||||
* Game Objects now have a new `physicsType` property. This maps to a Phaser const such as `SPRITE` or `GROUP` and has allowed us sort out pairings for collision checks in the core World collide handler much quicker than before.
|
||||
* Game Objects now have a new `physicsType` property. This maps to a Phaser const such as `SPRITE` or `GROUP` and allows Phaser to sort out pairings for collision checks in the core World collide handler much quicker than before.
|
||||
* BitmapText objects can now have physics enabled on them. When the physics body is first created it will use the dimensions of the BitmapText at the time you enable it. If you update the text it will adjust the body width and height as well, however any applied offset will be retained.
|
||||
* BitmapText objects now have an `anchor` property. This works in a similar way to Sprite.anchor except that it offsets the position of each letter of the BitmapText by the given amount, based on the overall BitmapText width - whereas Sprite.anchor offsets the position the texture is drawn at.
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*
|
||||
* Phaser - http://phaser.io
|
||||
*
|
||||
* v2.3.0 "Tarabon" - Built: Tue Mar 24 2015 16:05:22
|
||||
* v2.3.0 "Tarabon" - Built: Tue Mar 24 2015 21:33:54
|
||||
*
|
||||
* By Richard Davey http://www.photonstorm.com @photonstorm
|
||||
*
|
||||
|
@ -12288,7 +12288,7 @@ PIXI.AbstractFilter.prototype.apply = function(frameBuffer)
|
|||
*/
|
||||
var Phaser = Phaser || {
|
||||
|
||||
VERSION: '2.3.0-RC1',
|
||||
VERSION: '2.3.0-RC2',
|
||||
GAMES: [],
|
||||
|
||||
AUTO: 0,
|
||||
|
@ -34264,6 +34264,11 @@ Phaser.Component.Core.init = function (game, x, y, key, frame) {
|
|||
this.loadTexture(key, frame);
|
||||
}
|
||||
|
||||
if (this.components.FixedToCamera)
|
||||
{
|
||||
this.cameraOffset = new Phaser.Point(x, y);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
Phaser.Component.Core.preUpdate = function () {
|
||||
|
@ -35050,6 +35055,12 @@ Phaser.Component.FixedToCamera.postUpdate = function () {
|
|||
|
||||
Phaser.Component.FixedToCamera.prototype = {
|
||||
|
||||
/**
|
||||
* @property {boolean} _fixedToCamera
|
||||
* @private
|
||||
*/
|
||||
_fixedToCamera: false,
|
||||
|
||||
/**
|
||||
* A Game Object that is "fixed" to the camera uses its x/y coordinates as offsets from the top left of the camera during rendering.
|
||||
*
|
||||
|
@ -35067,7 +35078,29 @@ Phaser.Component.FixedToCamera.prototype = {
|
|||
*
|
||||
* @property {boolean} fixedToCamera
|
||||
*/
|
||||
fixedToCamera: false,
|
||||
fixedToCamera: {
|
||||
|
||||
get: function () {
|
||||
|
||||
return this._fixedToCamera;
|
||||
|
||||
},
|
||||
|
||||
set: function (value) {
|
||||
|
||||
if (value)
|
||||
{
|
||||
this._fixedToCamera = true;
|
||||
this.cameraOffset.set(this.x, this.y);
|
||||
}
|
||||
else
|
||||
{
|
||||
this._fixedToCamera = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* The x/y coordinate offset applied to the top-left of the camera that this Game Object will be drawn at if `fixedToCamera` is true.
|
||||
|
@ -35357,7 +35390,7 @@ Phaser.Component.InWorld.prototype = {
|
|||
*/
|
||||
inWorld: {
|
||||
|
||||
get: function() {
|
||||
get: function () {
|
||||
|
||||
return this.game.world.bounds.intersects(this.getBounds());
|
||||
|
||||
|
@ -35444,7 +35477,7 @@ Phaser.Component.LifeSpan.prototype = {
|
|||
* @param {number} [health=1] - The health to give the Game Object. Only set if the GameObject has the Health component.
|
||||
* @return {PIXI.DisplayObject} This instance.
|
||||
*/
|
||||
revive: function(health) {
|
||||
revive: function (health) {
|
||||
|
||||
if (typeof health === 'undefined') { health = 1; }
|
||||
|
||||
|
@ -35479,7 +35512,7 @@ Phaser.Component.LifeSpan.prototype = {
|
|||
* @method
|
||||
* @return {PIXI.DisplayObject} This instance.
|
||||
*/
|
||||
kill: function() {
|
||||
kill: function () {
|
||||
|
||||
this.alive = false;
|
||||
this.exists = false;
|
||||
|
@ -35669,7 +35702,7 @@ Phaser.Component.LoadTexture.prototype = {
|
|||
*
|
||||
* @method
|
||||
*/
|
||||
resetFrame: function() {
|
||||
resetFrame: function () {
|
||||
|
||||
if (this._frame)
|
||||
{
|
||||
|
@ -35941,7 +35974,7 @@ Phaser.Component.Reset = function () {};
|
|||
* @param {number} [health=1] - The health to give the Game Object if it has the Health component.
|
||||
* @return {PIXI.DisplayObject} This instance.
|
||||
*/
|
||||
Phaser.Component.Reset.prototype.reset = function(x, y, health) {
|
||||
Phaser.Component.Reset.prototype.reset = function (x, y, health) {
|
||||
|
||||
if (typeof health === 'undefined') { health = 1; }
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
22
build/custom/phaser-arcade-physics.min.js
vendored
22
build/custom/phaser-arcade-physics.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -7,7 +7,7 @@
|
|||
*
|
||||
* Phaser - http://phaser.io
|
||||
*
|
||||
* v2.3.0 "Tarabon" - Built: Tue Mar 24 2015 16:05:30
|
||||
* v2.3.0 "Tarabon" - Built: Tue Mar 24 2015 21:34:03
|
||||
*
|
||||
* By Richard Davey http://www.photonstorm.com @photonstorm
|
||||
*
|
||||
|
@ -12288,7 +12288,7 @@ PIXI.AbstractFilter.prototype.apply = function(frameBuffer)
|
|||
*/
|
||||
var Phaser = Phaser || {
|
||||
|
||||
VERSION: '2.3.0-RC1',
|
||||
VERSION: '2.3.0-RC2',
|
||||
GAMES: [],
|
||||
|
||||
AUTO: 0,
|
||||
|
@ -31772,6 +31772,11 @@ Phaser.Component.Core.init = function (game, x, y, key, frame) {
|
|||
this.loadTexture(key, frame);
|
||||
}
|
||||
|
||||
if (this.components.FixedToCamera)
|
||||
{
|
||||
this.cameraOffset = new Phaser.Point(x, y);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
Phaser.Component.Core.preUpdate = function () {
|
||||
|
@ -32558,6 +32563,12 @@ Phaser.Component.FixedToCamera.postUpdate = function () {
|
|||
|
||||
Phaser.Component.FixedToCamera.prototype = {
|
||||
|
||||
/**
|
||||
* @property {boolean} _fixedToCamera
|
||||
* @private
|
||||
*/
|
||||
_fixedToCamera: false,
|
||||
|
||||
/**
|
||||
* A Game Object that is "fixed" to the camera uses its x/y coordinates as offsets from the top left of the camera during rendering.
|
||||
*
|
||||
|
@ -32575,7 +32586,29 @@ Phaser.Component.FixedToCamera.prototype = {
|
|||
*
|
||||
* @property {boolean} fixedToCamera
|
||||
*/
|
||||
fixedToCamera: false,
|
||||
fixedToCamera: {
|
||||
|
||||
get: function () {
|
||||
|
||||
return this._fixedToCamera;
|
||||
|
||||
},
|
||||
|
||||
set: function (value) {
|
||||
|
||||
if (value)
|
||||
{
|
||||
this._fixedToCamera = true;
|
||||
this.cameraOffset.set(this.x, this.y);
|
||||
}
|
||||
else
|
||||
{
|
||||
this._fixedToCamera = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* The x/y coordinate offset applied to the top-left of the camera that this Game Object will be drawn at if `fixedToCamera` is true.
|
||||
|
@ -32865,7 +32898,7 @@ Phaser.Component.InWorld.prototype = {
|
|||
*/
|
||||
inWorld: {
|
||||
|
||||
get: function() {
|
||||
get: function () {
|
||||
|
||||
return this.game.world.bounds.intersects(this.getBounds());
|
||||
|
||||
|
@ -32952,7 +32985,7 @@ Phaser.Component.LifeSpan.prototype = {
|
|||
* @param {number} [health=1] - The health to give the Game Object. Only set if the GameObject has the Health component.
|
||||
* @return {PIXI.DisplayObject} This instance.
|
||||
*/
|
||||
revive: function(health) {
|
||||
revive: function (health) {
|
||||
|
||||
if (typeof health === 'undefined') { health = 1; }
|
||||
|
||||
|
@ -32987,7 +33020,7 @@ Phaser.Component.LifeSpan.prototype = {
|
|||
* @method
|
||||
* @return {PIXI.DisplayObject} This instance.
|
||||
*/
|
||||
kill: function() {
|
||||
kill: function () {
|
||||
|
||||
this.alive = false;
|
||||
this.exists = false;
|
||||
|
@ -33177,7 +33210,7 @@ Phaser.Component.LoadTexture.prototype = {
|
|||
*
|
||||
* @method
|
||||
*/
|
||||
resetFrame: function() {
|
||||
resetFrame: function () {
|
||||
|
||||
if (this._frame)
|
||||
{
|
||||
|
@ -33449,7 +33482,7 @@ Phaser.Component.Reset = function () {};
|
|||
* @param {number} [health=1] - The health to give the Game Object if it has the Health component.
|
||||
* @return {PIXI.DisplayObject} This instance.
|
||||
*/
|
||||
Phaser.Component.Reset.prototype.reset = function(x, y, health) {
|
||||
Phaser.Component.Reset.prototype.reset = function (x, y, health) {
|
||||
|
||||
if (typeof health === 'undefined') { health = 1; }
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
12
build/custom/phaser-minimum.min.js
vendored
12
build/custom/phaser-minimum.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -7,7 +7,7 @@
|
|||
*
|
||||
* Phaser - http://phaser.io
|
||||
*
|
||||
* v2.3.0 "Tarabon" - Built: Tue Mar 24 2015 16:05:26
|
||||
* v2.3.0 "Tarabon" - Built: Tue Mar 24 2015 21:33:59
|
||||
*
|
||||
* By Richard Davey http://www.photonstorm.com @photonstorm
|
||||
*
|
||||
|
@ -12288,7 +12288,7 @@ PIXI.AbstractFilter.prototype.apply = function(frameBuffer)
|
|||
*/
|
||||
var Phaser = Phaser || {
|
||||
|
||||
VERSION: '2.3.0-RC1',
|
||||
VERSION: '2.3.0-RC2',
|
||||
GAMES: [],
|
||||
|
||||
AUTO: 0,
|
||||
|
@ -34264,6 +34264,11 @@ Phaser.Component.Core.init = function (game, x, y, key, frame) {
|
|||
this.loadTexture(key, frame);
|
||||
}
|
||||
|
||||
if (this.components.FixedToCamera)
|
||||
{
|
||||
this.cameraOffset = new Phaser.Point(x, y);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
Phaser.Component.Core.preUpdate = function () {
|
||||
|
@ -35050,6 +35055,12 @@ Phaser.Component.FixedToCamera.postUpdate = function () {
|
|||
|
||||
Phaser.Component.FixedToCamera.prototype = {
|
||||
|
||||
/**
|
||||
* @property {boolean} _fixedToCamera
|
||||
* @private
|
||||
*/
|
||||
_fixedToCamera: false,
|
||||
|
||||
/**
|
||||
* A Game Object that is "fixed" to the camera uses its x/y coordinates as offsets from the top left of the camera during rendering.
|
||||
*
|
||||
|
@ -35067,7 +35078,29 @@ Phaser.Component.FixedToCamera.prototype = {
|
|||
*
|
||||
* @property {boolean} fixedToCamera
|
||||
*/
|
||||
fixedToCamera: false,
|
||||
fixedToCamera: {
|
||||
|
||||
get: function () {
|
||||
|
||||
return this._fixedToCamera;
|
||||
|
||||
},
|
||||
|
||||
set: function (value) {
|
||||
|
||||
if (value)
|
||||
{
|
||||
this._fixedToCamera = true;
|
||||
this.cameraOffset.set(this.x, this.y);
|
||||
}
|
||||
else
|
||||
{
|
||||
this._fixedToCamera = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* The x/y coordinate offset applied to the top-left of the camera that this Game Object will be drawn at if `fixedToCamera` is true.
|
||||
|
@ -35357,7 +35390,7 @@ Phaser.Component.InWorld.prototype = {
|
|||
*/
|
||||
inWorld: {
|
||||
|
||||
get: function() {
|
||||
get: function () {
|
||||
|
||||
return this.game.world.bounds.intersects(this.getBounds());
|
||||
|
||||
|
@ -35444,7 +35477,7 @@ Phaser.Component.LifeSpan.prototype = {
|
|||
* @param {number} [health=1] - The health to give the Game Object. Only set if the GameObject has the Health component.
|
||||
* @return {PIXI.DisplayObject} This instance.
|
||||
*/
|
||||
revive: function(health) {
|
||||
revive: function (health) {
|
||||
|
||||
if (typeof health === 'undefined') { health = 1; }
|
||||
|
||||
|
@ -35479,7 +35512,7 @@ Phaser.Component.LifeSpan.prototype = {
|
|||
* @method
|
||||
* @return {PIXI.DisplayObject} This instance.
|
||||
*/
|
||||
kill: function() {
|
||||
kill: function () {
|
||||
|
||||
this.alive = false;
|
||||
this.exists = false;
|
||||
|
@ -35669,7 +35702,7 @@ Phaser.Component.LoadTexture.prototype = {
|
|||
*
|
||||
* @method
|
||||
*/
|
||||
resetFrame: function() {
|
||||
resetFrame: function () {
|
||||
|
||||
if (this._frame)
|
||||
{
|
||||
|
@ -35941,7 +35974,7 @@ Phaser.Component.Reset = function () {};
|
|||
* @param {number} [health=1] - The health to give the Game Object if it has the Health component.
|
||||
* @return {PIXI.DisplayObject} This instance.
|
||||
*/
|
||||
Phaser.Component.Reset.prototype.reset = function(x, y, health) {
|
||||
Phaser.Component.Reset.prototype.reset = function (x, y, health) {
|
||||
|
||||
if (typeof health === 'undefined') { health = 1; }
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
18
build/custom/phaser-no-physics.min.js
vendored
18
build/custom/phaser-no-physics.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -7,7 +7,7 @@
|
|||
*
|
||||
* Phaser - http://phaser.io
|
||||
*
|
||||
* v2.3.0 "Tarabon" - Built: Tue Mar 24 2015 16:05:16
|
||||
* v2.3.0 "Tarabon" - Built: Tue Mar 24 2015 21:33:48
|
||||
*
|
||||
* By Richard Davey http://www.photonstorm.com @photonstorm
|
||||
*
|
||||
|
@ -12288,7 +12288,7 @@ PIXI.AbstractFilter.prototype.apply = function(frameBuffer)
|
|||
*/
|
||||
var Phaser = Phaser || {
|
||||
|
||||
VERSION: '2.3.0-RC1',
|
||||
VERSION: '2.3.0-RC2',
|
||||
GAMES: [],
|
||||
|
||||
AUTO: 0,
|
||||
|
@ -34264,6 +34264,11 @@ Phaser.Component.Core.init = function (game, x, y, key, frame) {
|
|||
this.loadTexture(key, frame);
|
||||
}
|
||||
|
||||
if (this.components.FixedToCamera)
|
||||
{
|
||||
this.cameraOffset = new Phaser.Point(x, y);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
Phaser.Component.Core.preUpdate = function () {
|
||||
|
@ -35050,6 +35055,12 @@ Phaser.Component.FixedToCamera.postUpdate = function () {
|
|||
|
||||
Phaser.Component.FixedToCamera.prototype = {
|
||||
|
||||
/**
|
||||
* @property {boolean} _fixedToCamera
|
||||
* @private
|
||||
*/
|
||||
_fixedToCamera: false,
|
||||
|
||||
/**
|
||||
* A Game Object that is "fixed" to the camera uses its x/y coordinates as offsets from the top left of the camera during rendering.
|
||||
*
|
||||
|
@ -35067,7 +35078,29 @@ Phaser.Component.FixedToCamera.prototype = {
|
|||
*
|
||||
* @property {boolean} fixedToCamera
|
||||
*/
|
||||
fixedToCamera: false,
|
||||
fixedToCamera: {
|
||||
|
||||
get: function () {
|
||||
|
||||
return this._fixedToCamera;
|
||||
|
||||
},
|
||||
|
||||
set: function (value) {
|
||||
|
||||
if (value)
|
||||
{
|
||||
this._fixedToCamera = true;
|
||||
this.cameraOffset.set(this.x, this.y);
|
||||
}
|
||||
else
|
||||
{
|
||||
this._fixedToCamera = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* The x/y coordinate offset applied to the top-left of the camera that this Game Object will be drawn at if `fixedToCamera` is true.
|
||||
|
@ -35357,7 +35390,7 @@ Phaser.Component.InWorld.prototype = {
|
|||
*/
|
||||
inWorld: {
|
||||
|
||||
get: function() {
|
||||
get: function () {
|
||||
|
||||
return this.game.world.bounds.intersects(this.getBounds());
|
||||
|
||||
|
@ -35444,7 +35477,7 @@ Phaser.Component.LifeSpan.prototype = {
|
|||
* @param {number} [health=1] - The health to give the Game Object. Only set if the GameObject has the Health component.
|
||||
* @return {PIXI.DisplayObject} This instance.
|
||||
*/
|
||||
revive: function(health) {
|
||||
revive: function (health) {
|
||||
|
||||
if (typeof health === 'undefined') { health = 1; }
|
||||
|
||||
|
@ -35479,7 +35512,7 @@ Phaser.Component.LifeSpan.prototype = {
|
|||
* @method
|
||||
* @return {PIXI.DisplayObject} This instance.
|
||||
*/
|
||||
kill: function() {
|
||||
kill: function () {
|
||||
|
||||
this.alive = false;
|
||||
this.exists = false;
|
||||
|
@ -35669,7 +35702,7 @@ Phaser.Component.LoadTexture.prototype = {
|
|||
*
|
||||
* @method
|
||||
*/
|
||||
resetFrame: function() {
|
||||
resetFrame: function () {
|
||||
|
||||
if (this._frame)
|
||||
{
|
||||
|
@ -35941,7 +35974,7 @@ Phaser.Component.Reset = function () {};
|
|||
* @param {number} [health=1] - The health to give the Game Object if it has the Health component.
|
||||
* @return {PIXI.DisplayObject} This instance.
|
||||
*/
|
||||
Phaser.Component.Reset.prototype.reset = function(x, y, health) {
|
||||
Phaser.Component.Reset.prototype.reset = function (x, y, health) {
|
||||
|
||||
if (typeof health === 'undefined') { health = 1; }
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
30
build/phaser.min.js
vendored
30
build/phaser.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue