Word bubbles

This commit is contained in:
2014-06-11 22:26:48 -07:00
parent c22da5c205
commit 0e919535e6

View File

@@ -272,6 +272,8 @@ var AISprite = function(game, x, y, spritetype) {
}
//this.bubble = game.add.group()
aistate = this.state & ( STATE_UNAWARE | STATE_CONCERNED | STATE_ALERTED | STATE_LOSTHIM );
console.log(this.sprite_group);
console.log(aistate);
var mylines = moonlightDialog['status'][this.sprite_group][aistate];
var text = mylines[game.rnd.integerInRange(0, mylines.length)];
var style = {font: '12px Arial Bold', fill: '#ffffff', align: 'center'}