From 511cd99e229e11dd9354171bd690f34bb1ee9395 Mon Sep 17 00:00:00 2001 From: MisterErwin Date: Sat, 13 Feb 2021 14:04:28 +0100 Subject: [PATCH] Fix offsets of SpeechBubble.ts Since some recent optimizations, they are being added on top of the player, which makes the offset redundant. --- front/src/Phaser/Entity/SpeechBubble.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/src/Phaser/Entity/SpeechBubble.ts b/front/src/Phaser/Entity/SpeechBubble.ts index 06a64bd4..231de875 100644 --- a/front/src/Phaser/Entity/SpeechBubble.ts +++ b/front/src/Phaser/Entity/SpeechBubble.ts @@ -14,7 +14,7 @@ export class SpeechBubble { const bubbleWidth = bubblePadding * 2 + text.length * 10; const arrowHeight = bubbleHeight / 4; - this.bubble = scene.add.graphics({ x: player.x + 16, y: player.y - 80 }); + this.bubble = scene.add.graphics({ x: 16, y: -80 }); player.add(this.bubble); // Bubble shadow