Add wandering sprites back to map via map objects

This commit is contained in:
2014-06-13 01:59:28 -07:00
parent 81a447254b
commit 0d575c8980

View File

@@ -757,9 +757,9 @@ var AISprite = function(game, x, y, key, frame, spritetype) {
'townsfolk-guard-2'
];
Phaser.Sprite.call(this, game, x, y, null);
game.physics.arcade.enable(this);
this.body.collideWorldBounds = true;
if ( (typeof spritetype) !== undefined ) {
this.sprite_name = spritenames_by_type[spritetype];
var ARGH = spritenames_by_type[spritetype];