Size wordbubbles to text

This commit is contained in:
2014-06-15 19:35:10 -07:00
parent ec68d9c187
commit ccd91db414

View File

@@ -847,7 +847,7 @@ var AISprite = function(game, x, y, key, frame) {
this.bubble_sprite.x = this.x + 16;
this.bubble_sprite.y = this.y;
var tx = this.bubble_sprite.x + 8 - (this.text_size[0]/2);
var ty = this.bubble_sprite.y + 8 - (this.text_size[1]/2);
var ty = this.bubble_sprite.y + 8 - (this.text_size[1]);
this.bubble_text.position.x = tx;
this.bubble_text.position.y = ty;
}