Word bubbles
This commit is contained in:
@@ -272,6 +272,8 @@ var AISprite = function(game, x, y, spritetype) {
|
|||||||
}
|
}
|
||||||
//this.bubble = game.add.group()
|
//this.bubble = game.add.group()
|
||||||
aistate = this.state & ( STATE_UNAWARE | STATE_CONCERNED | STATE_ALERTED | STATE_LOSTHIM );
|
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 mylines = moonlightDialog['status'][this.sprite_group][aistate];
|
||||||
var text = mylines[game.rnd.integerInRange(0, mylines.length)];
|
var text = mylines[game.rnd.integerInRange(0, mylines.length)];
|
||||||
var style = {font: '12px Arial Bold', fill: '#ffffff', align: 'center'}
|
var style = {font: '12px Arial Bold', fill: '#ffffff', align: 'center'}
|
||||||
|
|||||||
Reference in New Issue
Block a user