mirror of
https://github.com/wassname/phaser.git
synced 2026-07-01 16:50:43 +08:00
Fix box dimensions in PIXI.BitmapText. Support anchor in Phaser.BitmapText
This commit is contained in:
@@ -80,6 +80,9 @@ Phaser.BitmapText.prototype.update = function() {
|
||||
this._cache.dirty = true;
|
||||
}
|
||||
|
||||
this.pivot.x = this.anchor.x*this.width;
|
||||
this.pivot.y = this.anchor.y*this.height;
|
||||
|
||||
}
|
||||
|
||||
Object.defineProperty(Phaser.BitmapText.prototype, 'angle', {
|
||||
|
||||
Reference in New Issue
Block a user