summaryrefslogtreecommitdiff
path: root/src/ui/hud/snake/scenes
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2022-06-04 03:17:22 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2022-06-04 03:17:22 -0600
commit36874a535a3d5f7f2955f33e34aa1a4768b6fec1 (patch)
tree8f4eaa57d5e82d962719a8a399cfc210ced672e6 /src/ui/hud/snake/scenes
parentf922fe4669080d1633e0a345a3f8981867c9e841 (diff)
added hud for snake size and grow progress
Diffstat (limited to 'src/ui/hud/snake/scenes')
-rw-r--r--src/ui/hud/snake/scenes/SnakeHUD.tscn12
-rw-r--r--src/ui/hud/snake/scenes/SnakeHead.tscn8
-rw-r--r--src/ui/hud/snake/scenes/SnakeSegment.tscn5
3 files changed, 25 insertions, 0 deletions
diff --git a/src/ui/hud/snake/scenes/SnakeHUD.tscn b/src/ui/hud/snake/scenes/SnakeHUD.tscn
new file mode 100644
index 0000000..4b33885
--- /dev/null
+++ b/src/ui/hud/snake/scenes/SnakeHUD.tscn
@@ -0,0 +1,12 @@
+[gd_scene load_steps=4 format=2]
+
+[ext_resource path="res://ui/hud/snake/scenes/SnakeHead.tscn" type="PackedScene" id=1]
+[ext_resource path="res://ui/hud/snake/scripts/snake_hud.gd" type="Script" id=2]
+[ext_resource path="res://ui/hud/snake/sprites/head1.png" type="Texture" id=3]
+
+[node name="SnakeHUD" type="HBoxContainer"]
+custom_constants/separation = 0
+script = ExtResource( 2 )
+
+[node name="SnakeHead" parent="." instance=ExtResource( 1 )]
+texture = ExtResource( 3 )
diff --git a/src/ui/hud/snake/scenes/SnakeHead.tscn b/src/ui/hud/snake/scenes/SnakeHead.tscn
new file mode 100644
index 0000000..79eb7d1
--- /dev/null
+++ b/src/ui/hud/snake/scenes/SnakeHead.tscn
@@ -0,0 +1,8 @@
+[gd_scene load_steps=2 format=2]
+
+[ext_resource path="res://ui/hud/snake/scripts/snake_head.gd" type="Script" id=1]
+
+[node name="SnakeHead" type="TextureRect"]
+margin_right = 8.0
+margin_bottom = 8.0
+script = ExtResource( 1 )
diff --git a/src/ui/hud/snake/scenes/SnakeSegment.tscn b/src/ui/hud/snake/scenes/SnakeSegment.tscn
new file mode 100644
index 0000000..069a812
--- /dev/null
+++ b/src/ui/hud/snake/scenes/SnakeSegment.tscn
@@ -0,0 +1,5 @@
+[gd_scene format=2]
+
+[node name="SnakeSegment" type="TextureRect"]
+margin_right = 4.0
+margin_bottom = 4.0