Skip to content
Snippets Groups Projects
Commit fdd5e45f authored by Paolo Brasolin's avatar Paolo Brasolin
Browse files

feat: #fe remove clock icon from HUD

parent cd8777f3
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ...@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
### Changed
- `FE` Removed redundant clock icon from HUD.
## [1.0.0] - 2022-04-21 ## [1.0.0] - 2022-04-21
### Added ### Added
......
...@@ -109,12 +109,7 @@ export default class HUD { ...@@ -109,12 +109,7 @@ export default class HUD {
initClock(scene: Phaser.Scene) { initClock(scene: Phaser.Scene) {
return scene.add return scene.add
.text( .text(scene.cameras.main.width * 0.5, 0, "", this.statsTextStyle())
scene.cameras.main.width * 0.5,
0,
`${ICONS.CLOCK}1:23.32`,
this.statsTextStyle(),
)
.setOrigin(0.5, 0); .setOrigin(0.5, 0);
} }
...@@ -131,7 +126,8 @@ export default class HUD { ...@@ -131,7 +126,8 @@ export default class HUD {
} }
setClock(milliseconds: number) { 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) { showSubmitFeedback(color: string, input: string) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment