Merge pull request #736 from MisterErwin/patch-1

Fix offsets of SpeechBubble.ts
This commit is contained in:
David Négrier 2021-02-16 20:02:03 +01:00 committed by GitHub
commit ae1d00c828
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@ export class SpeechBubble {
const bubbleWidth = bubblePadding * 2 + text.length * 10; const bubbleWidth = bubblePadding * 2 + text.length * 10;
const arrowHeight = bubbleHeight / 4; 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); player.add(this.bubble);
// Bubble shadow // Bubble shadow