mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 12:43:26 +00:00
Renamed methods to avoid confliction with Animation component
This commit is contained in:
parent
db613c793a
commit
3f0ee709f0
2 changed files with 19 additions and 16 deletions
|
@ -30,7 +30,7 @@ A special mention must go to @orblazer for their outstanding assistance in helpi
|
||||||
* Camera.fadeIn is a new method that will fade the camera in from a given color (black by default) and then optionally invoke a callback. This is the same as using Camera.flash but with an easier to grok method name. Fix #3412 (thanks @Jerenaux)
|
* Camera.fadeIn is a new method that will fade the camera in from a given color (black by default) and then optionally invoke a callback. This is the same as using Camera.flash but with an easier to grok method name. Fix #3412 (thanks @Jerenaux)
|
||||||
* Camera.fadeOut is a new method that will fade the camera out to a given color (black by default) and then optionally invoke a callback. This is the same as using Camera.fade but with an easier to grok method name. Fix #3412 (thanks @Jerenaux)
|
* Camera.fadeOut is a new method that will fade the camera out to a given color (black by default) and then optionally invoke a callback. This is the same as using Camera.fade but with an easier to grok method name. Fix #3412 (thanks @Jerenaux)
|
||||||
* Groups will now listen for a `destroy` event from any Game Object added to them, and if received will automatically remove that GameObject from the Group. Fix #3418 (thanks @hadikcz)
|
* Groups will now listen for a `destroy` event from any Game Object added to them, and if received will automatically remove that GameObject from the Group. Fix #3418 (thanks @hadikcz)
|
||||||
* MatterGameObject is a new function, available via the Matter Factory in `this.matter.add.gameObject`, that will inject a Matter JS Body into any Game Object, such as a Text object.
|
* MatterGameObject is a new function, available via the Matter Factory in `this.matter.add.gameObject`, that will inject a Matter JS Body into any Game Object, such as a Text or TileSprite object.
|
||||||
* Matter.SetBody and SetExistingBody will now set the origin of the Game Object to be the Matter JS sprite.xOffset and yOffset values, which will auto-center the Game Object to the origin of the body, regardless of shape.
|
* Matter.SetBody and SetExistingBody will now set the origin of the Game Object to be the Matter JS sprite.xOffset and yOffset values, which will auto-center the Game Object to the origin of the body, regardless of shape.
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
@ -100,7 +100,11 @@ A special mention must go to @orblazer for their outstanding assistance in helpi
|
||||||
* Triangle.getLineC now returns a Line instead of an untyped object. It also now has an optional argument that allows you to pass a Line in to be populated, rather than creating a new one.
|
* Triangle.getLineC now returns a Line instead of an untyped object. It also now has an optional argument that allows you to pass a Line in to be populated, rather than creating a new one.
|
||||||
* The GameObject `destroy` event is now emitted at the start of the destroy process, before things like the body or input managers have been removed, so you're able to use the event handler to extract any information you require from the GameObject before it's actually disposed of. Previously, the event was dispatched at the very end of the process.
|
* The GameObject `destroy` event is now emitted at the start of the destroy process, before things like the body or input managers have been removed, so you're able to use the event handler to extract any information you require from the GameObject before it's actually disposed of. Previously, the event was dispatched at the very end of the process.
|
||||||
* Phaser 3 is now built with Webpack v4.1.1 and all related packages have been updated (thanks @orblazer)
|
* Phaser 3 is now built with Webpack v4.1.1 and all related packages have been updated (thanks @orblazer)
|
||||||
|
* On WebGL the currentScissor is now updated when the renderer `resize` method is called (thanks @jmcriat)
|
||||||
|
* PathFollower.start has been renamed to `startFollow` to avoid conflicting with the Animation component.
|
||||||
|
* PathFollower.pause has been renamed to `pauseFollow` to avoid conflicting with the Animation component.
|
||||||
|
* PathFollower.resume has been renamed to `resumeFollow` to avoid conflicting with the Animation component.
|
||||||
|
* PathFollower.stop has been renamed to `stopFollow` to avoid conflicting with the Animation component.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -170,7 +170,6 @@ var PathFollower = new Class({
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
|
|
||||||
// rotation offset in degrees
|
|
||||||
/**
|
/**
|
||||||
* [description]
|
* [description]
|
||||||
*
|
*
|
||||||
|
@ -178,7 +177,7 @@ var PathFollower = new Class({
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*
|
*
|
||||||
* @param {number} value - [description]
|
* @param {number} value - [description]
|
||||||
* @param {number} [offset=0] - [description]
|
* @param {number} [offset=0] - Rotation offset in degrees.
|
||||||
* @param {boolean} [verticalAdjust=false] - [description]
|
* @param {boolean} [verticalAdjust=false] - [description]
|
||||||
*
|
*
|
||||||
* @return {Phaser.GameObjects.PathFollower} This Game Object.
|
* @return {Phaser.GameObjects.PathFollower} This Game Object.
|
||||||
|
@ -215,15 +214,15 @@ var PathFollower = new Class({
|
||||||
/**
|
/**
|
||||||
* Starts this PathFollower following its given Path.
|
* Starts this PathFollower following its given Path.
|
||||||
*
|
*
|
||||||
* @method Phaser.GameObjects.PathFollower#start
|
* @method Phaser.GameObjects.PathFollower#startFollow
|
||||||
* @since 3.0.0
|
* @since 3.3.0
|
||||||
*
|
*
|
||||||
* @param {object} config - [description]
|
* @param {object} config - [description]
|
||||||
* @param {number} [startAt=0] - [description]
|
* @param {number} [startAt=0] - [description]
|
||||||
*
|
*
|
||||||
* @return {Phaser.GameObjects.PathFollower} This Game Object.
|
* @return {Phaser.GameObjects.PathFollower} This Game Object.
|
||||||
*/
|
*/
|
||||||
start: function (config, startAt)
|
startFollow: function (config, startAt)
|
||||||
{
|
{
|
||||||
if (config === undefined) { config = {}; }
|
if (config === undefined) { config = {}; }
|
||||||
if (startAt === undefined) { startAt = 0; }
|
if (startAt === undefined) { startAt = 0; }
|
||||||
|
@ -285,12 +284,12 @@ var PathFollower = new Class({
|
||||||
* Pauses this PathFollower. It will still continue to render, but it will remain motionless at the
|
* Pauses this PathFollower. It will still continue to render, but it will remain motionless at the
|
||||||
* point on the Path at which you paused it.
|
* point on the Path at which you paused it.
|
||||||
*
|
*
|
||||||
* @method Phaser.GameObjects.PathFollower#pause
|
* @method Phaser.GameObjects.PathFollower#pauseFollow
|
||||||
* @since 3.0.0
|
* @since 3.3.0
|
||||||
*
|
*
|
||||||
* @return {Phaser.GameObjects.PathFollower} This Game Object.
|
* @return {Phaser.GameObjects.PathFollower} This Game Object.
|
||||||
*/
|
*/
|
||||||
pause: function ()
|
pauseFollow: function ()
|
||||||
{
|
{
|
||||||
var tween = this.pathTween;
|
var tween = this.pathTween;
|
||||||
|
|
||||||
|
@ -306,12 +305,12 @@ var PathFollower = new Class({
|
||||||
* Resumes a previously paused PathFollower.
|
* Resumes a previously paused PathFollower.
|
||||||
* If the PathFollower was not paused this has no effect.
|
* If the PathFollower was not paused this has no effect.
|
||||||
*
|
*
|
||||||
* @method Phaser.GameObjects.PathFollower#resume
|
* @method Phaser.GameObjects.PathFollower#resumeFollow
|
||||||
* @since 3.0.0
|
* @since 3.3.0
|
||||||
*
|
*
|
||||||
* @return {Phaser.GameObjects.PathFollower} This Game Object.
|
* @return {Phaser.GameObjects.PathFollower} This Game Object.
|
||||||
*/
|
*/
|
||||||
resume: function ()
|
resumeFollow: function ()
|
||||||
{
|
{
|
||||||
var tween = this.pathTween;
|
var tween = this.pathTween;
|
||||||
|
|
||||||
|
@ -327,12 +326,12 @@ var PathFollower = new Class({
|
||||||
* Stops this PathFollower from following the path any longer.
|
* Stops this PathFollower from following the path any longer.
|
||||||
* This will invoke any 'stop' conditions that may exist on the Path, or for the follower.
|
* This will invoke any 'stop' conditions that may exist on the Path, or for the follower.
|
||||||
*
|
*
|
||||||
* @method Phaser.GameObjects.PathFollower#stop
|
* @method Phaser.GameObjects.PathFollower#stopFollow
|
||||||
* @since 3.0.0
|
* @since 3.3.0
|
||||||
*
|
*
|
||||||
* @return {Phaser.GameObjects.PathFollower} This Game Object.
|
* @return {Phaser.GameObjects.PathFollower} This Game Object.
|
||||||
*/
|
*/
|
||||||
stop: function ()
|
stopFollow: function ()
|
||||||
{
|
{
|
||||||
var tween = this.pathTween;
|
var tween = this.pathTween;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue