More wandering sprite work

This commit is contained in:
2014-06-11 21:01:43 -07:00
parent 95444cfb1d
commit 00f76beaaa

View File

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