New features and plenty of code still in testing. This includes a level select, basic inventory, and a basic HUD.
This commit is contained in:
18
GUI/HUD.gd
Normal file
18
GUI/HUD.gd
Normal file
@@ -0,0 +1,18 @@
|
||||
extends CanvasLayer
|
||||
|
||||
signal add_currency(amount)
|
||||
|
||||
|
||||
func _on_Add_Currency_pressed() -> void:
|
||||
emit_signal('add_currency', 1)
|
||||
return
|
||||
|
||||
|
||||
func update_currency(amount: int) -> void:
|
||||
$Currency.set_text(String(amount))
|
||||
return
|
||||
|
||||
|
||||
func update_health(value: int) -> void:
|
||||
$'Health Bar'.value = value
|
||||
return
|
Reference in New Issue
Block a user