From 9ea4c888e79dd5239e648ace7749da54e36fd504 Mon Sep 17 00:00:00 2001 From: Renge Date: Sat, 23 Apr 2022 16:25:37 -0400 Subject: [PATCH] fix: change some UI locations --- src/shattered_sword/Scenes/GameLevel.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/shattered_sword/Scenes/GameLevel.ts b/src/shattered_sword/Scenes/GameLevel.ts index 0e5fcdf..945d4f3 100644 --- a/src/shattered_sword/Scenes/GameLevel.ts +++ b/src/shattered_sword/Scenes/GameLevel.ts @@ -504,7 +504,7 @@ export default class GameLevel extends Scene { this.healthLabel.textColor = Color.GREEN; this.healthLabel.font = "PixelSimple"; this.healthLabel.fontSize = 25; - this.healthBar = this.add.graphic(GraphicType.RECT, "UI", {position: new Vec2(100+150, 20), size: new Vec2(400, 10)}); + this.healthBar = this.add.graphic(GraphicType.RECT, "UI", {position: new Vec2(0, 0), size: new Vec2(0, 0)}); this.healthBar.borderColor = Color.BLACK; this.healthBar.borderWidth = 3; this.healthBar.color = Color.GREEN; @@ -525,7 +525,7 @@ export default class GameLevel extends Scene { this.shieldLabel.textColor = Color.ORANGE; this.shieldLabel.font = "PixelSimple"; this.shieldLabel.fontSize = 25; - this.shieldBar = this.add.graphic(GraphicType.RECT, "UI", {position: new Vec2(100+150, 50), size: new Vec2(400, 10)}); + this.shieldBar = this.add.graphic(GraphicType.RECT, "UI", {position: new Vec2(0, 0), size: new Vec2(0, 0)}); this.shieldBar.borderColor = Color.BLACK; this.shieldBar.borderWidth = 3; this.shieldBar.color = Color.ORANGE; @@ -1019,7 +1019,7 @@ export default class GameLevel extends Scene { this.currentSpeaker = this.story.texts[0].speaker; this.currentContent = this.story.texts[0].content; this.storyLayer.enable(); - this.storytextLabel =