mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 20:53:39 +00:00
Added custom pivot boolean.
This commit is contained in:
parent
5085ed5c9f
commit
33a67f3aff
1 changed files with 10 additions and 1 deletions
|
@ -145,7 +145,6 @@ var Frame = new Class({
|
|||
*/
|
||||
this.halfWidth = Math.floor(width * 0.5);
|
||||
|
||||
|
||||
/**
|
||||
* Half the height, floored.
|
||||
* Precalculated for the renderer.
|
||||
|
@ -194,6 +193,16 @@ var Frame = new Class({
|
|||
*/
|
||||
this.pivotY = 0;
|
||||
|
||||
/**
|
||||
* Does this Frame have a custom pivot point?
|
||||
*
|
||||
* @name Phaser.Textures.Frame#customPivot
|
||||
* @type {boolean}
|
||||
* @default false
|
||||
* @since 3.0.0
|
||||
*/
|
||||
this.customPivot = false;
|
||||
|
||||
/**
|
||||
* **CURRENTLY UNSUPPORTED**
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue