Skip to content

Commit

Permalink
-Place HUD at bottom of parallax. WIP #15.'
Browse files Browse the repository at this point in the history
-NO resizable window, for now.
  • Loading branch information
thebigG committed Dec 14, 2023
1 parent 7ef98f6 commit 86386fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions Gunner/project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ settings/stdout/print_fps=true

window/size/viewport_width=500
window/size/viewport_height=790
window/size/resizable=false
window/size/width=600
window/size/height=850

Expand Down
6 changes: 2 additions & 4 deletions Gunner/src/Gunner1.gd
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,11 @@ func _ready():
)
)

# hud.position = self.position

health_bar.theme = load("res://Assets/Themes/health_bar_theme.tres")
health_bar.value = self.health

hud.theme = hud_theme
score_label.text = "Score:\n" + str(score)
score_label.text = "Score:" + str(score)
hud_grid.add_child(score_label)
hud_grid.add_child(health_bar)

Expand Down Expand Up @@ -164,7 +162,7 @@ func _physics_process(delta):

func increment_score():
score += 1
score_label.text = "Score:\n" + str(score)
score_label.text = "Score:" + str(score)

#func damage():
# Input.start_joy_vibration(0, 0.5, 0, 1)
Expand Down

0 comments on commit 86386fc

Please sign in to comment.