feat: 添加玩家和敌人血条
This commit is contained in:
@@ -16,6 +16,7 @@ var dash_available := true
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
super._ready()
|
||||
dash_timer.wait_time = dash_duration
|
||||
dash_cooldown_timer.wait_time = dash_cooldown
|
||||
|
||||
|
||||
@@ -63,5 +63,9 @@ z_index = 1
|
||||
position = Vector2(0, -32)
|
||||
shape = SubResource("CircleShape2D_ht2l1")
|
||||
|
||||
[node name="HealthBar" parent="." index="8" unique_id=1540037291]
|
||||
back_color = Color(0.13725491, 0.019607844, 0.02745098, 1)
|
||||
fill_color = Color(1, 0.2901961, 0.45490196, 1)
|
||||
|
||||
[connection signal="timeout" from="DashTimer" to="." method="_on_dash_timer_timeout"]
|
||||
[connection signal="timeout" from="TrailTimer" to="Visuals/Trail" method="_on_trail_timer_timeout"]
|
||||
|
||||
Reference in New Issue
Block a user