Size wordbubbles to text
This commit is contained in:
@@ -828,6 +828,7 @@ var AISprite = function(game, x, y, key, frame) {
|
|||||||
bubbleimg = game.cache.getImage('wordbubble');
|
bubbleimg = game.cache.getImage('wordbubble');
|
||||||
//text = mylines[game.rnd.integerInRange(0, mylines.length-1)];
|
//text = mylines[game.rnd.integerInRange(0, mylines.length-1)];
|
||||||
text = mylines[0];
|
text = mylines[0];
|
||||||
|
console.log(text);
|
||||||
style = {font: '14px Arial Bold', fill: '#ffffff'}
|
style = {font: '14px Arial Bold', fill: '#ffffff'}
|
||||||
this.text_size = stringSize(text, style['font']);
|
this.text_size = stringSize(text, style['font']);
|
||||||
this.bubble_sprite = game.add.sprite(this.x, this.y, 'wordbubble');
|
this.bubble_sprite = game.add.sprite(this.x, this.y, 'wordbubble');
|
||||||
|
|||||||
Reference in New Issue
Block a user