[gd_scene load_steps=21 format=3 uid="uid://c0hcrkf1s2mww"] [ext_resource type="Script" path="res://converters/converter.gd" id="1_nl8w8"] [ext_resource type="Texture2D" uid="uid://440yhlpwpfw4" path="res://converters/copper_to_silver/copper_converter_back.png" id="2_n2t4e"] [ext_resource type="Texture2D" uid="uid://dq5aowbt2wxec" path="res://converters/copper_to_silver/copper_converter_front_1.png" id="3_5albl"] [ext_resource type="Texture2D" uid="uid://ck254fewe4l41" path="res://converters/copper_to_silver/copper_converter_front_2.png" id="4_lk7ni"] [ext_resource type="Texture2D" uid="uid://dg4qq1pgojk8d" path="res://converters/copper_to_silver/copper_converter_front_3.png" id="5_b51qy"] [ext_resource type="Texture2D" uid="uid://60502lbpup6" path="res://converters/copper_to_silver/copper_converter_front_4.png" id="6_w1me1"] [ext_resource type="PackedScene" uid="uid://c5w3b55aiui6c" path="res://collector/collector.tscn" id="7_8xgpc"] [ext_resource type="PackedScene" uid="uid://c67lfbk4gf1ga" path="res://spawner/spawner.tscn" id="8_gdane"] [ext_resource type="PackedScene" uid="uid://dme22vvfgme5f" path="res://entity/coin_silver/coin_silver.tscn" id="9_scl8h"] [ext_resource type="AudioStream" uid="uid://br25ip30mu174" path="res://audio/conversione/mechanic_sound.wav" id="10_rm0va"] [ext_resource type="AudioStream" uid="uid://7tw5efuo3gxj" path="res://audio/conversione/coin_to_coin.wav" id="11_mv2w6"] [sub_resource type="AtlasTexture" id="AtlasTexture_62dyi"] atlas = ExtResource("3_5albl") region = Rect2(0, 2, 32, 33) [sub_resource type="AtlasTexture" id="AtlasTexture_gs3wo"] atlas = ExtResource("4_lk7ni") region = Rect2(0, 2, 32, 33) [sub_resource type="AtlasTexture" id="AtlasTexture_tboq2"] atlas = ExtResource("5_b51qy") region = Rect2(0, 2, 32, 33) [sub_resource type="AtlasTexture" id="AtlasTexture_okgf4"] atlas = ExtResource("6_w1me1") region = Rect2(0, 2, 32, 33) [sub_resource type="SpriteFrames" id="SpriteFrames_4m3dg"] animations = [{ "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_62dyi") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_gs3wo") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_tboq2") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_okgf4") }], "loop": true, "name": &"default", "speed": 15.0 }] [sub_resource type="CapsuleShape2D" id="CapsuleShape2D_aslkt"] radius = 1.5 height = 28.0 [sub_resource type="RectangleShape2D" id="RectangleShape2D_31dtl"] size = Vector2(26, 4) [sub_resource type="RectangleShape2D" id="RectangleShape2D_k11if"] size = Vector2(26, 5) [sub_resource type="RectangleShape2D" id="RectangleShape2D_jeo5f"] size = Vector2(26, 8.83334) [node name="FurnaceConverter" type="StaticBody2D" node_paths=PackedStringArray("sprite_front", "conversion_timer", "sound_working", "sound_complete", "spawner")] scale = Vector2(3, 3) script = ExtResource("1_nl8w8") sprite_front = NodePath("") conversion_timer = NodePath("") sound_working = NodePath("") sound_complete = NodePath("") spawner = NodePath("") [node name="SpriteBack" type="Sprite2D" parent="."] z_index = -2 texture_filter = 1 texture = ExtResource("2_n2t4e") [node name="SpriteFront" type="AnimatedSprite2D" parent="."] z_index = 2 texture_filter = 1 sprite_frames = SubResource("SpriteFrames_4m3dg") [node name="LeftWall" type="CollisionShape2D" parent="."] z_index = 2 position = Vector2(-14.5, -3) shape = SubResource("CapsuleShape2D_aslkt") [node name="RightWall" type="CollisionShape2D" parent="."] z_index = 2 position = Vector2(14.5, -3) shape = SubResource("CapsuleShape2D_aslkt") [node name="InnerWall" type="CollisionShape2D" parent="."] z_index = 3 position = Vector2(0, 4.5) rotation = 3.14159 shape = SubResource("RectangleShape2D_31dtl") [node name="Collector" parent="." node_paths=PackedStringArray("sound_absorb") instance=ExtResource("7_8xgpc")] z_index = 2 collecting_types = Array[StringName]([&"Copper"]) sound_absorb = NodePath("") collecting_amount = 10 [node name="CollectShape" type="CollisionShape2D" parent="Collector"] shape = SubResource("RectangleShape2D_k11if") debug_color = Color(0, 0.701961, 0.188235, 0.419608) [node name="Spawner" parent="." instance=ExtResource("8_gdane")] position = Vector2(0, 8) scene = ExtResource("9_scl8h") buffer_cap = 1 spawn_rect = Rect2(-8, 0, 16, 4) spawn_rotation_degrees_min = 80.0 spawn_rotation_degrees_max = 100.0 overlapping_body_count_limit = 4 [node name="PreventSpawnShape" type="CollisionShape2D" parent="Spawner"] z_index = 3 position = Vector2(0, 3.5) shape = SubResource("RectangleShape2D_jeo5f") debug_color = Color(0.701961, 0, 0, 0.419608) [node name="ConversionTimer" type="Timer" parent="."] wait_time = 0.5 one_shot = true [node name="SoundAbsorb" type="AudioStreamPlayer" parent="."] stream = ExtResource("10_rm0va") [node name="SoundWorking" type="AudioStreamPlayer" parent="."] stream = ExtResource("10_rm0va") [node name="SoundComplete" type="AudioStreamPlayer" parent="."] stream = ExtResource("11_mv2w6") [connection signal="collected" from="Collector" to="." method="_on_collector_collected" flags=18] [connection signal="goal" from="Collector" to="." method="_on_collector_goal" flags=18] [connection signal="timeout" from="ConversionTimer" to="." method="_on_timer_timeout" flags=18]