Word bubbles
This commit is contained in:
@@ -418,9 +418,8 @@ var AISprite = function(game, x, y, spritetype) {
|
|||||||
game.physics.arcade.enable(this);
|
game.physics.arcade.enable(this);
|
||||||
this.body.collideWorldBounds = true;
|
this.body.collideWorldBounds = true;
|
||||||
|
|
||||||
this.sprite_group = ['townsfolk-male',
|
var ARGH = spritenames_by_type[spritetype].split("-")
|
||||||
'townsfolk-female',
|
this.sprite_group = ARGH[0] + "-" + ARGH[1];
|
||||||
'townsfolk-guard'][Math.round(spritetype / 4) - 1];
|
|
||||||
|
|
||||||
addAnimation(this, 'bipedwalkleft');
|
addAnimation(this, 'bipedwalkleft');
|
||||||
addAnimation(this, 'bipedwalkright');
|
addAnimation(this, 'bipedwalkright');
|
||||||
|
|||||||
Reference in New Issue
Block a user