feat: added hud for utilites

This commit is contained in:
DottsGit
2026-06-05 02:15:32 -04:00
parent ecefeb9f7e
commit a85e0952c5
5 changed files with 87 additions and 1 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ class_name MovementParams
# ── Dash ──────────────────────────────────────────────────────────────────────
@export var dash_speed: float = 10.0
@export var dash_duration: float = 0.25
@export var dash_cooldown: float = 1.0
@export var dash_cooldown: float = 10.0
@export var dash_invulnerability_time: float = 0.1
# ── Rocket Jump ───────────────────────────────────────────────────────────────
+4
View File
@@ -259,3 +259,7 @@ func _apply_crouch(crouched: bool) -> void:
shape_node.position.y = 0.0
if head:
head.position.y = 0.7
func get_dash_cooldown_remaining() -> float:
var now := Time.get_ticks_msec() / 1000.0
return maxf(0.0, params.dash_cooldown - (now - StateDash._last_dash_time))