2023-10-01 09:56:54 +00:00
|
|
|
[gd_scene load_steps=6 format=3 uid="uid://cbccs6kwwf265"]
|
2023-09-20 22:58:47 +00:00
|
|
|
|
2023-09-30 20:53:38 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://bllsprv8orpn4" path="res://bottle/bottle.tscn" id="1_4fmd3"]
|
2023-09-30 18:16:49 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://c3kitncwpi42j" path="res://entity/coin_copper.tscn" id="2_dv01l"]
|
2023-09-30 21:13:55 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://d05b8jy3xmpcb" path="res://bottle/gravity_from_gyro.tscn" id="2_m7p4p"]
|
2023-09-30 18:16:49 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://c67lfbk4gf1ga" path="res://spawner/spawner.tscn" id="3_pubxn"]
|
2023-10-01 09:56:54 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://c5w3b55aiui6c" path="res://collector/collector.tscn" id="5_c2ruc"]
|
2023-09-20 22:58:47 +00:00
|
|
|
|
|
|
|
[node name="Root" type="Node"]
|
|
|
|
|
|
|
|
[node name="UI" type="Control" parent="."]
|
|
|
|
layout_mode = 3
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
size_flags_vertical = 8
|
|
|
|
|
2023-10-01 00:38:27 +00:00
|
|
|
[node name="GameContainer" type="Control" parent="UI"]
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 7
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 1.0
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 0
|
|
|
|
|
|
|
|
[node name="Game" type="Node2D" parent="UI/GameContainer"]
|
|
|
|
texture_filter = 1
|
|
|
|
|
|
|
|
[node name="Bottle" parent="UI/GameContainer/Game" instance=ExtResource("1_4fmd3")]
|
|
|
|
|
|
|
|
[node name="GravityFromGyro" parent="UI/GameContainer/Game/Bottle" instance=ExtResource("2_m7p4p")]
|
|
|
|
|
|
|
|
[node name="TimeSpawner" parent="UI/GameContainer/Game" instance=ExtResource("3_pubxn")]
|
|
|
|
position = Vector2(0, -480)
|
|
|
|
scene = ExtResource("2_dv01l")
|
|
|
|
buffer_cap = 1
|
|
|
|
spawn_position_range_x = 32.0
|
|
|
|
spawn_rotation_range = 15.0
|
|
|
|
overlapping_bodies_collision_mask = 4
|
|
|
|
overlapping_body_count_limit = 4
|
|
|
|
|
|
|
|
[node name="Timer" type="Timer" parent="UI/GameContainer/Game/TimeSpawner"]
|
|
|
|
wait_time = 0.03
|
|
|
|
autostart = true
|
|
|
|
|
|
|
|
[node name="ButtonSpawner" parent="UI/GameContainer/Game" instance=ExtResource("3_pubxn")]
|
|
|
|
position = Vector2(0, -480)
|
|
|
|
scene = ExtResource("2_dv01l")
|
|
|
|
buffer_cap = 50
|
|
|
|
spawn_position_range_x = 32.0
|
|
|
|
spawn_rotation_range = 15.0
|
|
|
|
overlapping_bodies_collision_mask = 4
|
|
|
|
overlapping_body_count_limit = 4
|
|
|
|
|
2023-10-01 09:56:54 +00:00
|
|
|
[node name="Collector" parent="UI/GameContainer/Game" instance=ExtResource("5_c2ruc")]
|
|
|
|
position = Vector2(-92, -257)
|
|
|
|
|
2023-09-20 22:58:47 +00:00
|
|
|
[node name="Rows" type="VBoxContainer" parent="UI"]
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
|
|
|
|
[node name="NotchSpacer" type="PanelContainer" parent="UI/Rows"]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
|
|
|
|
[node name="UpperButtons" type="HBoxContainer" parent="UI/Rows"]
|
|
|
|
custom_minimum_size = Vector2(0, 54)
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_vertical = 8
|
|
|
|
|
|
|
|
[node name="MoneyButton" type="Button" parent="UI/Rows/UpperButtons"]
|
|
|
|
custom_minimum_size = Vector2(54, 0)
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 8
|
|
|
|
text = "$0"
|
|
|
|
alignment = 0
|
|
|
|
|
|
|
|
[node name="UpperButtonsSpacerLeft" type="PanelContainer" parent="UI/Rows/UpperButtons"]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
|
|
|
|
[node name="SpawnButton" type="Button" parent="UI/Rows/UpperButtons"]
|
|
|
|
custom_minimum_size = Vector2(54, 0)
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 8
|
|
|
|
text = "Drop"
|
|
|
|
|
|
|
|
[node name="UpperButtonsSpacerRight" type="PanelContainer" parent="UI/Rows/UpperButtons"]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
|
|
|
|
[node name="ShopButton" type="Button" parent="UI/Rows/UpperButtons"]
|
|
|
|
custom_minimum_size = Vector2(54, 0)
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 8
|
|
|
|
text = "Shop"
|
|
|
|
alignment = 2
|
|
|
|
|
2023-10-01 00:18:08 +00:00
|
|
|
[connection signal="timeout" from="UI/GameContainer/Game/TimeSpawner/Timer" to="UI/GameContainer/Game/TimeSpawner" method="spawn"]
|
2023-10-01 00:38:27 +00:00
|
|
|
[connection signal="pressed" from="UI/Rows/UpperButtons/SpawnButton" to="UI/GameContainer/Game/ButtonSpawner" method="spawn"]
|