From 75f13f7cad222df25842248bb94028f76f2dbcc9 Mon Sep 17 00:00:00 2001
From: Paolo Brasolin <paolo.brasolin@eurac.edu>
Date: Thu, 17 Mar 2022 17:42:20 +0100
Subject: [PATCH] fix: #fe lower messages

---
 frontend/src/js/fight_scene.ts | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/frontend/src/js/fight_scene.ts b/frontend/src/js/fight_scene.ts
index 2bb01d0..dd05783 100644
--- a/frontend/src/js/fight_scene.ts
+++ b/frontend/src/js/fight_scene.ts
@@ -176,7 +176,11 @@ export default class FightScene extends Phaser.Scene {
 
   showMissMessage() {
     const message = this.add
-      .sprite(this.cameras.main.width / 2, this.cameras.main.height / 2, "miss")
+      .sprite(
+        this.cameras.main.width / 2,
+        (3 * this.cameras.main.height) / 4,
+        "miss",
+      )
       .setScale(1);
     message.play({ key: "missing", repeat: 1 });
     message.on("animationcomplete", () => {
@@ -187,7 +191,11 @@ export default class FightScene extends Phaser.Scene {
 
   showHitMessage() {
     const message = this.add
-      .sprite(this.cameras.main.width / 2, this.cameras.main.height / 2, "hit")
+      .sprite(
+        this.cameras.main.width / 2,
+        (3 * this.cameras.main.height) / 4,
+        "hit",
+      )
       .setScale(1);
     message.play({ key: "hit", repeat: 1 });
     message.on("animationcomplete", () => {
-- 
GitLab