Size wordbubbles to text

This commit is contained in:
2014-06-15 20:13:22 -07:00
parent 1368d8c317
commit e33b6755e5

View File

@@ -828,6 +828,7 @@ var AISprite = function(game, x, y, key, frame) {
bubbleimg = game.cache.getImage('wordbubble');
//text = mylines[game.rnd.integerInRange(0, mylines.length-1)];
text = mylines[0];
console.log(text);
style = {font: '14px Arial Bold', fill: '#ffffff'}
this.text_size = stringSize(text, style['font']);
this.bubble_sprite = game.add.sprite(this.x, this.y, 'wordbubble');