diff options
Diffstat (limited to 'scripts/player.gd')
-rw-r--r-- | scripts/player.gd | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/player.gd b/scripts/player.gd index 95878d0..f6a63a0 100644 --- a/scripts/player.gd +++ b/scripts/player.gd @@ -10,8 +10,10 @@ const STAM_REGEN = 10.0 #@export_node_path("ProgressBar") var stam_bar_path = null @export var stam_bar: ProgressBar = null; +@export var seed_text: RichTextLabel = null; var stamina: float = 100 +var num_seeds: int = 0 # Get the gravity from the project settings to be synced with RigidBody nodes. var gravity = ProjectSettings.get_setting("physics/3d/default_gravity") @@ -53,6 +55,7 @@ func throw(): func _ready(): assert(stam_bar != null, "Stamina bar is null") + assert(seed_text != null, "Seed text is null") Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED) $ThirdPersonCamera.mouse_follow = true @@ -62,6 +65,7 @@ func _ready(): func _process(_delta): stam_bar.value = stamina + seed_text.text = str(num_seeds) func _physics_process(delta): var speed = SPEED |