diff --git a/pickup_area.gd b/pickup_area.gd index 4406de0..051f66a 100644 --- a/pickup_area.gd +++ b/pickup_area.gd @@ -13,6 +13,7 @@ var is_picked_up = false var is_dropable = false var parent: Node2D + func _ready(): mouse_entered.connect(func(): is_clickable = true) mouse_exited.connect(func(): is_clickable = false) diff --git a/prototype_dark_cut.tscn b/prototype_dark_cut.tscn index 41af886..ea7edd4 100644 --- a/prototype_dark_cut.tscn +++ b/prototype_dark_cut.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=29 format=3 uid="uid://be0rqt7sk1da0"] +[gd_scene load_steps=31 format=3 uid="uid://be0rqt7sk1da0"] [ext_resource type="Texture2D" uid="uid://bicjfwpoa3pma" path="res://test_table.png" id="1_7i8d4"] [ext_resource type="Script" path="res://prototype_dark_cut.gd" id="1_vl0qk"] @@ -22,6 +22,14 @@ [ext_resource type="Script" path="res://bat_extraction_bat.gd" id="13_um5dt"] [ext_resource type="Script" path="res://grab_step.gd" id="18_d00rj"] +[sub_resource type="Gradient" id="Gradient_1s7o2"] +offsets = PackedFloat32Array(0.294915) +colors = PackedColorArray(0.601223, 0.601223, 0.601223, 1) + +[sub_resource type="GradientTexture1D" id="GradientTexture1D_f6e8o"] +gradient = SubResource("Gradient_1s7o2") +width = 1152 + [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_pgu75"] bg_color = Color(0.417457, 0, 0.105249, 1) @@ -51,6 +59,11 @@ point_count = 8 [node name="PrototypeDarkCut" type="Node"] script = ExtResource("1_vl0qk") +[node name="Sprite2D" type="Sprite2D" parent="."] +position = Vector2(576, 323.25) +scale = Vector2(1.001, 648) +texture = SubResource("GradientTexture1D_f6e8o") + [node name="UI" type="Control" parent="."] unique_name_in_owner = true layout_mode = 3 @@ -73,6 +86,7 @@ theme_override_constants/separation = 10 [node name="Label" type="Label" parent="UI/HBoxContainer"] layout_mode = 2 +theme_override_colors/font_color = Color(0, 0, 0, 1) text = "Patience:" [node name="PatienceBar" type="ProgressBar" parent="UI/HBoxContainer"]