mirror of
https://github.com/wassname/phaser.git
synced 2026-07-11 00:40:20 +08:00
Adding Type support for collision checks.
This commit is contained in:
@@ -14,6 +14,8 @@ Phaser.Text = function (game, x, y, text, style) {
|
||||
|
||||
Phaser.Sprite.call(this, game, x, y, canvasID);
|
||||
|
||||
this.type = Phaser.TEXT;
|
||||
|
||||
this.setText(text);
|
||||
this.setStyle(style);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user