More wandering sprite work

This commit is contained in:
2014-06-11 21:03:01 -07:00
parent 00f76beaaa
commit e94094c8e2

View File

@@ -189,6 +189,7 @@ var WanderingSprite = function(game, x, y, spritetype) {
'townsfolk-guard-2' 'townsfolk-guard-2'
]; ];
Phaser.Sprite.call(this, game, x, y, spritenames_by_type[spritetype]); Phaser.Sprite.call(this, game, x, y, spritenames_by_type[spritetype]);
game.physics.arcade.enable(this);
this.body.checkWorldBounds = true; this.body.checkWorldBounds = true;
} }