mirror of
https://github.com/wassname/phaser.git
synced 2026-06-27 16:10:15 +08:00
1.0.3 release - fixed Text and Bitmap Fonts, Animation documentation and more examples
This commit is contained in:
@@ -19,10 +19,13 @@ Phaser.BitmapText = function (game, x, y, text, style) {
|
||||
|
||||
PIXI.BitmapText.call(this, text, style);
|
||||
|
||||
this.type = Phaser.BITMAPTEXT;
|
||||
|
||||
this.position.x = x;
|
||||
this.position.y = y;
|
||||
|
||||
// Replaces the PIXI.Point with a slightly more flexible one
|
||||
this.anchor = new Phaser.Point();
|
||||
this.scale = new Phaser.Point(1, 1);
|
||||
|
||||
// Influence of camera movement upon the position
|
||||
@@ -51,11 +54,10 @@ Phaser.BitmapText = function (game, x, y, text, style) {
|
||||
|
||||
};
|
||||
|
||||
Phaser.BitmapText.prototype = Phaser.Utils.extend(true, PIXI.BitmapText.prototype);
|
||||
Phaser.BitmapText.prototype = Object.create(PIXI.BitmapText.prototype);
|
||||
// Phaser.BitmapText.prototype = Phaser.Utils.extend(true, PIXI.BitmapText.prototype);
|
||||
Phaser.BitmapText.prototype.constructor = Phaser.BitmapText;
|
||||
|
||||
// Add our own custom methods
|
||||
|
||||
/**
|
||||
* Automatically called by World.update
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user