From: MegaBrutal Date: Tue, 2 Oct 2018 21:25:25 +0000 (+0200) Subject: Fix notice text positioning X-Git-Url: http://git.megabrutal.com/?p=wgj58.git;a=commitdiff_plain;h=0563c04aacd9c3b9cc39e23fc8762623d985cd79 Fix notice text positioning modified: wgj58.js --- diff --git a/wgj58.js b/wgj58.js index ff020d1..6ec551c 100644 --- a/wgj58.js +++ b/wgj58.js @@ -715,8 +715,7 @@ class GameInterface extends Phaser.Group { this.back_notice.drawRect(0, 0, game.width, 30); this.back_notice.endFill(); this.add(this.back_notice); - this.text_notice = new Phaser.Text(game, 0, this.back_notice.y, null, { align: 'left', fill: 'white', font: 'Ubuntu Mono', fontSize: 18, fontWeight: 'bold' }); - this.text_notice.anchor.setTo(-0.5, -0.2); + this.text_notice = new Phaser.Text(game, 125, this.back_notice.y + 5, null, { align: 'left', fill: 'white', font: 'Ubuntu Mono', fontSize: 18, fontWeight: 'bold' }); this.add(this.text_notice); this.clearNotice();