Go back to text wordbubbles

This commit is contained in:
2014-06-14 10:22:10 -07:00
parent 2d870593bc
commit e9b66444af

View File

@@ -913,13 +913,13 @@ var AISprite = function(game, x, y, key, frame) {
'townsfolk-guard-2'
];
Phaser.Sprite.call(this, game, x, y, null);
Phaser.Sprite.call(this, game, x, y, 'townsfolk-male-1');
game.physics.arcade.enable(this);
this.timer = null;
this.body.collideWorldBounds = true;
this.state = STATE_UNAWARE;
this.sprite_name = "townsfolk-male-1";
this.sprite_group = "townsfolk-male";
this.update_new_values();
}
AISprite.prototype = Object.create(Phaser.Sprite.prototype);