Fix offsets of SpeechBubble.ts

Since some recent optimizations, they are being added on top of the player, which makes the offset redundant.
This commit is contained in:
MisterErwin 2021-02-13 14:04:28 +01:00 committed by GitHub
parent cfcad07487
commit 511cd99e22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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