(game, x, y, text, align, font)
| 400 | /***********************************************************************************/ |
| 401 | |
| 402 | var Text = function(game, x, y, text, align, font){ |
| 403 | Phaser.BitmapText.call(this, game, x, y, font, text, 16); |
| 404 | |
| 405 | this.align = align; |
| 406 | |
| 407 | if (align == "right") this.anchor.setTo(1, 0); |
| 408 | else this.anchor.setTo(0.5); |
| 409 | |
| 410 | this.game.add.existing(this); |
| 411 | }; |
| 412 | |
| 413 | Text.prototype = Object.create(Phaser.BitmapText.prototype); |
| 414 | Text.prototype.constructor = Text; |
nothing calls this directly
no outgoing calls
no test coverage detected