
- Got sprites for menu buttons - Added buttons to the menu - Added a manager script for the menu - Created resources for playlists and credits - Created a music player - Created the root scene that everything will be loaded into
9 lines
216 B
GDScript
9 lines
216 B
GDScript
class_name HealthBar extends Control
|
|
|
|
@onready var bar: ColorRect = $ColorRect2
|
|
@export var maxHealth: float = 1
|
|
|
|
func healthChanged(health) -> void:
|
|
print("Health Changed")
|
|
bar.size.y = (health / maxHealth) * 100
|