Fix notice text positioning
[wgj58.git] / wgj58.js
index 42f0485de13536a5f19d35ba46c496e6741f782a..6ec551c4b34c71cdb37dffb4dba47ad5754d2365 100644 (file)
--- a/wgj58.js
+++ b/wgj58.js
@@ -528,7 +528,7 @@ class NPC_Saiki extends GameNPC {
 
 class NPC_Peter extends GameNPC {
        actionTalk() {
-               if (logic.carlos.alive) {
+               if (logic.saiki.alive) {
                        switch (this.talkcount) {
                                case 0:
                                        logic.gameinterface.talk(new Dialogue( [ { actor: logic.player, text: "Hi Peter! What's up?" },
@@ -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();