wild jam prototype
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://dcpeowc6xcfcv"]
|
||||
[gd_scene load_steps=9 format=3 uid="uid://dcpeowc6xcfcv"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://d32ory5gus4lm" path="res://assets/dot.png" id="1_tsiui"]
|
||||
[ext_resource type="Script" path="res://scripts/hud.gd" id="1_yk6cu"]
|
||||
@@ -7,6 +7,13 @@
|
||||
[ext_resource type="Theme" uid="uid://ewgo3qi2xs54" path="res://data/themes/green_progress_bar_theme.tres" id="3_wvu2t"]
|
||||
[ext_resource type="Theme" uid="uid://dm1sx57hw07cn" path="res://data/themes/blue_progress_bar_theme.tres" id="4_n8d17"]
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_qj638"]
|
||||
colors = PackedColorArray(1, 1, 1, 1, 1, 1, 1, 1)
|
||||
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_w5aj4"]
|
||||
gradient = SubResource("Gradient_qj638")
|
||||
width = 64
|
||||
|
||||
[node name="HUD" type="CanvasLayer"]
|
||||
script = ExtResource("1_yk6cu")
|
||||
|
||||
@@ -14,10 +21,10 @@ script = ExtResource("1_yk6cu")
|
||||
anchors_preset = 2
|
||||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 16.0
|
||||
offset_top = -184.0
|
||||
offset_right = 64.0
|
||||
offset_bottom = -24.0
|
||||
offset_left = 8.0
|
||||
offset_top = -258.0
|
||||
offset_right = 80.0
|
||||
offset_bottom = -8.0
|
||||
grow_vertical = 0
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="PanelContainer"]
|
||||
@@ -30,6 +37,26 @@ theme_override_constants/margin_bottom = 2
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer/MarginContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="AllianceContainer" type="VBoxContainer" parent="PanelContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="AllianceText" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer/AllianceContainer"]
|
||||
layout_mode = 2
|
||||
text = "Alliance"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="PanelContainer/MarginContainer/VBoxContainer/AllianceContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/margin_left = 2
|
||||
theme_override_constants/margin_top = 2
|
||||
theme_override_constants/margin_right = 2
|
||||
theme_override_constants/margin_bottom = 2
|
||||
|
||||
[node name="AllianceTexture" type="TextureRect" parent="PanelContainer/MarginContainer/VBoxContainer/AllianceContainer/MarginContainer"]
|
||||
custom_minimum_size = Vector2(0, 8)
|
||||
layout_mode = 2
|
||||
texture = SubResource("GradientTexture1D_w5aj4")
|
||||
|
||||
[node name="LivesContainer" type="GridContainer" parent="PanelContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
columns = 3
|
||||
@@ -106,3 +133,28 @@ theme_override_constants/margin_right = 8
|
||||
[node name="EntityCountLabel" type="Label" parent="EntityCountContainer/MarginContainer"]
|
||||
layout_mode = 2
|
||||
text = "Entity Count: 0"
|
||||
|
||||
[node name="RocketSpawnedToast" type="PanelContainer" parent="."]
|
||||
visible = false
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -20.0
|
||||
offset_top = -20.0
|
||||
offset_right = 20.0
|
||||
offset_bottom = 20.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="Label" type="Label" parent="RocketSpawnedToast"]
|
||||
layout_mode = 2
|
||||
text = "Rocket has been placed!
|
||||
Find it to escape!"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Timer" type="Timer" parent="RocketSpawnedToast"]
|
||||
wait_time = 2.0
|
||||
|
||||
[connection signal="timeout" from="RocketSpawnedToast/Timer" to="." method="_on_timer_timeout"]
|
||||
|
||||
Reference in New Issue
Block a user