2023-10-02 01:33:41 +00:00
|
|
|
[gd_scene load_steps=13 format=3 uid="uid://c3rxmcwa5nqng"]
|
2023-10-01 12:39:16 +00:00
|
|
|
|
2023-10-01 13:40:42 +00:00
|
|
|
[ext_resource type="Script" path="res://game/game.gd" id="1_i3ly0"]
|
2023-10-01 12:39:16 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://bllsprv8orpn4" path="res://bottle/bottle.tscn" id="1_y7o2l"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://d05b8jy3xmpcb" path="res://bottle/gravity_from_gyro.tscn" id="2_h2pfr"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://c67lfbk4gf1ga" path="res://spawner/spawner.tscn" id="3_qwsty"]
|
2023-10-02 00:53:12 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://c3kitncwpi42j" path="res://entity/coin_copper/coin_copper.tscn" id="4_5oayc"]
|
2023-10-01 23:36:23 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://beg758fa6o0cs" path="res://value/evaluator.tscn" id="6_my6nv"]
|
2023-10-02 00:53:12 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://ratkps4plkhl" path="res://converters/copper_to_silver/copper_converter.tscn" id="7_ipeok"]
|
2023-10-02 01:14:45 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://but1bdslxp5jl" path="res://converters/silver_to_gold/silver_converter.tscn" id="8_0bbpi"]
|
2023-10-02 01:33:41 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://c2rlx7egl7xiv" path="res://collector/universal_collector.tscn" id="9_7op48"]
|
2023-10-01 12:39:16 +00:00
|
|
|
|
2023-10-01 22:57:14 +00:00
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_4uksi"]
|
|
|
|
size = Vector2(80, 80)
|
|
|
|
|
2023-10-01 23:36:23 +00:00
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_rh35r"]
|
|
|
|
size = Vector2(240, 384)
|
|
|
|
|
2023-10-02 01:33:41 +00:00
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_auxq0"]
|
|
|
|
size = Vector2(270, 270)
|
|
|
|
|
2023-10-01 12:39:16 +00:00
|
|
|
[node name="Game" type="Node2D"]
|
|
|
|
texture_filter = 1
|
2023-10-01 13:40:42 +00:00
|
|
|
script = ExtResource("1_i3ly0")
|
2023-10-01 12:39:16 +00:00
|
|
|
|
|
|
|
[node name="Bottle" parent="." instance=ExtResource("1_y7o2l")]
|
|
|
|
|
2023-10-01 22:57:14 +00:00
|
|
|
[node name="TimeSpawner" parent="." node_paths=PackedStringArray("target") instance=ExtResource("3_qwsty")]
|
2023-10-02 01:14:45 +00:00
|
|
|
position = Vector2(136, 0)
|
2023-10-02 00:53:12 +00:00
|
|
|
scene = ExtResource("4_5oayc")
|
2023-10-01 21:56:25 +00:00
|
|
|
target = NodePath("..")
|
2023-10-01 12:39:16 +00:00
|
|
|
buffer_cap = 1
|
2023-10-01 22:57:14 +00:00
|
|
|
spawn_rect = Rect2(-20, 0, 40, 0)
|
2023-10-01 12:39:16 +00:00
|
|
|
overlapping_body_count_limit = 4
|
|
|
|
|
2023-10-01 22:57:14 +00:00
|
|
|
[node name="NeckShape" type="CollisionShape2D" parent="TimeSpawner"]
|
2023-10-02 01:14:45 +00:00
|
|
|
position = Vector2(0, 40)
|
2023-10-01 22:57:14 +00:00
|
|
|
shape = SubResource("RectangleShape2D_4uksi")
|
2023-10-02 00:53:12 +00:00
|
|
|
debug_color = Color(0, 0.6, 0.701961, 0)
|
2023-10-01 22:57:14 +00:00
|
|
|
|
2023-10-01 12:39:16 +00:00
|
|
|
[node name="Timer" type="Timer" parent="TimeSpawner"]
|
2023-10-01 22:57:14 +00:00
|
|
|
wait_time = 0.1
|
2023-10-01 21:56:25 +00:00
|
|
|
autostart = true
|
2023-10-01 12:39:16 +00:00
|
|
|
|
2023-10-01 21:56:25 +00:00
|
|
|
[node name="ButtonSpawner" parent="." node_paths=PackedStringArray("target") instance=ExtResource("3_qwsty")]
|
2023-10-01 22:57:14 +00:00
|
|
|
position = Vector2(136, 0)
|
2023-10-02 00:53:12 +00:00
|
|
|
scene = ExtResource("4_5oayc")
|
2023-10-01 21:56:25 +00:00
|
|
|
target = NodePath("..")
|
2023-10-01 22:57:14 +00:00
|
|
|
buffer_cap = 10
|
|
|
|
spawn_rect = Rect2(-20, 0, 40, 0)
|
2023-10-01 12:39:16 +00:00
|
|
|
overlapping_body_count_limit = 4
|
|
|
|
|
2023-10-01 22:57:14 +00:00
|
|
|
[node name="NeckShape" type="CollisionShape2D" parent="ButtonSpawner"]
|
|
|
|
position = Vector2(0, 40)
|
|
|
|
shape = SubResource("RectangleShape2D_4uksi")
|
2023-10-02 00:53:12 +00:00
|
|
|
debug_color = Color(0, 0.6, 0.701961, 0)
|
2023-10-01 22:57:14 +00:00
|
|
|
|
2023-10-01 23:13:18 +00:00
|
|
|
[node name="GravityFromGyro" parent="." instance=ExtResource("2_h2pfr")]
|
|
|
|
|
2023-10-01 23:36:23 +00:00
|
|
|
[node name="Evaluator" parent="." instance=ExtResource("6_my6nv")]
|
2023-10-02 00:53:12 +00:00
|
|
|
position = Vector2(136, 272)
|
2023-10-01 23:36:23 +00:00
|
|
|
|
|
|
|
[node name="BottleShape" type="CollisionShape2D" parent="Evaluator"]
|
|
|
|
shape = SubResource("RectangleShape2D_rh35r")
|
2023-10-02 00:53:12 +00:00
|
|
|
debug_color = Color(0, 0.6, 0.701961, 0)
|
|
|
|
|
|
|
|
[node name="CopperConverter" parent="." instance=ExtResource("7_ipeok")]
|
2023-10-02 01:14:45 +00:00
|
|
|
position = Vector2(63, 337)
|
2023-10-02 00:53:12 +00:00
|
|
|
|
|
|
|
[node name="Spawner" parent="CopperConverter" index="6" node_paths=PackedStringArray("target")]
|
|
|
|
target = NodePath("../..")
|
2023-10-01 23:36:23 +00:00
|
|
|
|
2023-10-02 01:14:45 +00:00
|
|
|
[node name="SilverConverter" parent="." instance=ExtResource("8_0bbpi")]
|
|
|
|
position = Vector2(136, 417)
|
|
|
|
rotation = -1.57079
|
|
|
|
|
|
|
|
[node name="Spawner" parent="SilverConverter" index="6" node_paths=PackedStringArray("target")]
|
|
|
|
target = NodePath("../..")
|
|
|
|
|
2023-10-02 01:33:41 +00:00
|
|
|
[node name="UniversalCollector" parent="." instance=ExtResource("9_7op48")]
|
|
|
|
position = Vector2(135, -135)
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="UniversalCollector"]
|
|
|
|
shape = SubResource("RectangleShape2D_auxq0")
|
|
|
|
|
2023-10-01 12:39:16 +00:00
|
|
|
[connection signal="timeout" from="TimeSpawner/Timer" to="TimeSpawner" method="spawn"]
|
2023-10-01 23:36:23 +00:00
|
|
|
[connection signal="changed" from="Evaluator" to="." method="_on_score_changed"]
|
2023-10-02 00:53:12 +00:00
|
|
|
|
|
|
|
[editable path="CopperConverter"]
|
2023-10-02 01:14:45 +00:00
|
|
|
[editable path="SilverConverter"]
|