From fdd5e45f2d01061bc337409c97b7ac1abdb56d65 Mon Sep 17 00:00:00 2001
From: Paolo Brasolin <paolo.brasolin@gmail.com>
Date: Mon, 2 May 2022 16:02:34 +0200
Subject: [PATCH] feat: #fe remove clock icon from HUD

---
 CHANGELOG.md           |  4 ++++
 frontend/src/js/hud.ts | 10 +++-------
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index bd6ff3c..8fc1d6f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 
 ## [Unreleased]
 
+### Changed
+
+- `FE` Removed redundant clock icon from HUD.
+
 ## [1.0.0] - 2022-04-21
 
 ### Added
diff --git a/frontend/src/js/hud.ts b/frontend/src/js/hud.ts
index 8deddc0..057be4b 100644
--- a/frontend/src/js/hud.ts
+++ b/frontend/src/js/hud.ts
@@ -109,12 +109,7 @@ export default class HUD {
 
   initClock(scene: Phaser.Scene) {
     return scene.add
-      .text(
-        scene.cameras.main.width * 0.5,
-        0,
-        `${ICONS.CLOCK}1:23.32`,
-        this.statsTextStyle(),
-      )
+      .text(scene.cameras.main.width * 0.5, 0, "", this.statsTextStyle())
       .setOrigin(0.5, 0);
   }
 
@@ -131,7 +126,8 @@ export default class HUD {
   }
 
   setClock(milliseconds: number) {
-    this.clock.text = `${formatTime(milliseconds)}${THIN_SPACE}${ICONS.CLOCK}`;
+    this.clock.text = formatTime(milliseconds);
+    // this.clock.text = `${formatTime(milliseconds)}${THIN_SPACE}${ICONS.CLOCK}`;
   }
 
   showSubmitFeedback(color: string, input: string) {
-- 
GitLab