More wandering sprite work
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user