Added health bar

This commit is contained in:
Kristofers Solo
2021-11-13 15:02:48 +02:00
parent f7cb616e21
commit 9a157b2284
8 changed files with 98 additions and 45 deletions

View File

@@ -28,7 +28,7 @@ use_mipmaps = true
use_filter = true
font_data = ExtResource( 2 )
[node name="network_setup" type="Control"]
[node name="network_setup2" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 1 )

View File

@@ -0,0 +1,26 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://source/assets/sprites/GUI/bar-background.png" type="Texture" id=1]
[ext_resource path="res://source/assets/sprites/GUI/bar-fill.png" type="Texture" id=2]
[ext_resource path="res://source/assets/scripts/ui_element_handlers/HUD.gd" type="Script" id=3]
[node name="HUD" type="Node2D" groups=[
"Net",
]]
script = ExtResource( 3 )
[node name="health_bar" type="TextureProgress" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -64.0
margin_top = -20.0
margin_right = 64.0
margin_bottom = 20.0
value = 100.0
texture_under = ExtResource( 1 )
texture_progress = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}