[gd_scene load_steps=24 format=3 uid="uid://ratkps4plkhl"] [ext_resource type="Script" path="res://converters/converter.gd" id="1_mas6k"] [ext_resource type="PackedScene" uid="uid://dme22vvfgme5f" path="res://entity/coin_silver/coin_silver.tscn" id="2_h5aul"] [ext_resource type="Texture2D" uid="uid://440yhlpwpfw4" path="res://converters/copper_to_silver/copper_converter_back.png" id="3_p24go"] [ext_resource type="Texture2D" uid="uid://dq5aowbt2wxec" path="res://converters/copper_to_silver/copper_converter_front_1.png" id="4_exnn7"] [ext_resource type="Texture2D" uid="uid://ck254fewe4l41" path="res://converters/copper_to_silver/copper_converter_front_2.png" id="5_3v5ox"] [ext_resource type="Texture2D" uid="uid://dg4qq1pgojk8d" path="res://converters/copper_to_silver/copper_converter_front_3.png" id="6_acinx"] [ext_resource type="Texture2D" uid="uid://60502lbpup6" path="res://converters/copper_to_silver/copper_converter_front_4.png" id="7_11jge"] [ext_resource type="PackedScene" uid="uid://c5w3b55aiui6c" path="res://collector/collector.tscn" id="8_tc2oo"] [ext_resource type="AudioStream" uid="uid://bpxjhl0aq3yrv" path="res://audio/conversione/suck2.wav" id="9_1aocf"] [ext_resource type="PackedScene" uid="uid://c67lfbk4gf1ga" path="res://spawner/spawner.tscn" id="9_2wvgu"] [ext_resource type="AudioStream" uid="uid://br25ip30mu174" path="res://audio/conversione/mechanic_sound.wav" id="10_6hhch"] [ext_resource type="PackedScene" uid="uid://b3ev0md0jrpfj" path="res://converters/working_timer.tscn" id="10_72f5c"] [ext_resource type="AudioStream" uid="uid://7tw5efuo3gxj" path="res://audio/conversione/coin_to_coin.wav" id="11_r8505"] [ext_resource type="PackedScene" uid="uid://bevj27e1ha8m3" path="res://converters/placement_obstruction.tscn" id="12_5qhgs"] [sub_resource type="AtlasTexture" id="AtlasTexture_62dyi"] atlas = ExtResource("4_exnn7") region = Rect2(0, 2, 32, 33) [sub_resource type="AtlasTexture" id="AtlasTexture_gs3wo"] atlas = ExtResource("5_3v5ox") region = Rect2(0, 2, 32, 33) [sub_resource type="AtlasTexture" id="AtlasTexture_tboq2"] atlas = ExtResource("6_acinx") region = Rect2(0, 2, 32, 33) [sub_resource type="AtlasTexture" id="AtlasTexture_okgf4"] atlas = ExtResource("7_11jge") 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_bp8ms"] radius = 1.5 height = 28.0 [sub_resource type="ConvexPolygonShape2D" id="ConvexPolygonShape2D_ediwe"] points = PackedVector2Array(0, 0, -16, 0, -16, -3, -5, -7, 5, -7, 16, -3, 16, 0) [sub_resource type="RectangleShape2D" id="RectangleShape2D_csk2d"] size = Vector2(26, 5) [sub_resource type="RectangleShape2D" id="RectangleShape2D_kbgq6"] size = Vector2(16, 4) [node name="CopperConverter" type="StaticBody2D" node_paths=PackedStringArray("spawner")] scale = Vector2(3, 3) collision_layer = 8 collision_mask = 0 input_pickable = true script = ExtResource("1_mas6k") spawner = NodePath("Spawner") [node name="SpriteBack" type="Sprite2D" parent="."] z_index = -2 texture_filter = 1 texture = ExtResource("3_p24go") [node name="SpriteFront" type="AnimatedSprite2D" parent="."] z_index = 2 texture_filter = 1 sprite_frames = SubResource("SpriteFrames_4m3dg") [node name="PlacementObstruction" parent="." instance=ExtResource("12_5qhgs")] [node name="LeftWall" type="CollisionShape2D" parent="."] z_index = 2 position = Vector2(-14.5, -3) shape = SubResource("CapsuleShape2D_bp8ms") debug_color = Color(0, 0, 0, 0.784314) [node name="RightWall" type="CollisionShape2D" parent="."] z_index = 2 position = Vector2(14.5, -3) shape = SubResource("CapsuleShape2D_bp8ms") debug_color = Color(0, 0, 0, 0.784314) [node name="BottomWall" type="CollisionShape2D" parent="."] z_index = 3 position = Vector2(1.16196e-05, 9.08333) rotation = 3.14159 shape = SubResource("ConvexPolygonShape2D_ediwe") one_way_collision = true debug_color = Color(0, 0, 0, 0.784314) [node name="Collector" parent="." node_paths=PackedStringArray("sound_absorb") instance=ExtResource("8_tc2oo")] z_index = 2 position = Vector2(0, 6.5) collecting_types = Array[StringName]([&"Copper"]) sound_absorb = NodePath("SoundAbsorb") collecting_amount = 10 [node name="CollectShape" type="CollisionShape2D" parent="Collector"] shape = SubResource("RectangleShape2D_csk2d") debug_color = Color(0, 0.701961, 0.188235, 0.419608) [node name="SoundAbsorb" type="AudioStreamPlayer2D" parent="Collector"] stream = ExtResource("9_1aocf") volume_db = -8.0 pitch_scale = 2.0 [node name="WorkingTimer" parent="." node_paths=PackedStringArray("working_sound") instance=ExtResource("10_72f5c")] working_sound = NodePath("SoundWorking") [node name="SoundWorking" type="AudioStreamPlayer2D" parent="WorkingTimer"] position = Vector2(0, 25) stream = ExtResource("10_6hhch") pitch_scale = 1.08 [node name="Spawner" parent="." node_paths=PackedStringArray("sound_complete") instance=ExtResource("9_2wvgu")] position = Vector2(0, 10) scene = ExtResource("2_h5aul") 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 sound_complete = NodePath("SoundComplete") [node name="PreventSpawnShape" type="CollisionShape2D" parent="Spawner"] z_index = 3 position = Vector2(0, 2) shape = SubResource("RectangleShape2D_kbgq6") debug_color = Color(0.701961, 0, 0, 0.419608) [node name="SoundComplete" type="AudioStreamPlayer2D" parent="Spawner"] position = Vector2(0, 2) stream = ExtResource("11_r8505") [connection signal="input_event" from="." to="." method="_on_input_event"] [connection signal="goal" from="Collector" to="." method="_on_collector_goal"] [connection signal="timeout" from="WorkingTimer" to="." method="_on_working_timer_timeout"]