1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-11-22 23:54:21 +00:00
swear-jar/converters/item_converter/item_converter.tscn

273 lines
11 KiB
Text
Raw Normal View History

2023-10-24 18:01:08 +00:00
[gd_scene load_steps=39 format=3 uid="uid://ddrhfhebwtq5"]
2023-10-02 14:17:34 +00:00
2023-10-02 21:24:01 +00:00
[ext_resource type="Script" path="res://converters/item_converter/item_converter.gd" id="1_o3eos"]
2023-10-02 14:17:34 +00:00
[ext_resource type="Texture2D" uid="uid://devcho3gaigt0" path="res://converters/item_converter/item_converter_back_1.png" id="2_136t7"]
[ext_resource type="Texture2D" uid="uid://bq54rpw5jufyd" path="res://converters/item_converter/item_converter_back_2.png" id="3_6gyd6"]
[ext_resource type="PackedScene" uid="uid://c5w3b55aiui6c" path="res://collector/collector.tscn" id="3_qehi7"]
[ext_resource type="Texture2D" uid="uid://dsolplf1s7va6" path="res://converters/item_converter/item_converter_back_3.png" id="4_bs7n5"]
[ext_resource type="PackedScene" uid="uid://c67lfbk4gf1ga" path="res://spawner/spawner.tscn" id="4_ihtl7"]
[ext_resource type="Texture2D" uid="uid://c4vpmiwjfvcpy" path="res://converters/item_converter/item_converter_back_4.png" id="5_lk4ym"]
[ext_resource type="Texture2D" uid="uid://c0kstbgsm65vq" path="res://converters/item_converter/item_converter_back_5.png" id="6_io2km"]
[ext_resource type="Texture2D" uid="uid://crnu1x5n33yqu" path="res://converters/item_converter/item_converter_front_1.png" id="7_khayw"]
[ext_resource type="Texture2D" uid="uid://b0vkliltyaljc" path="res://converters/item_converter/item_converter_front_2.png" id="8_w6rnl"]
[ext_resource type="Texture2D" uid="uid://fqerky4lyps8" path="res://converters/item_converter/item_converter_front_3.png" id="9_88mk7"]
[ext_resource type="Texture2D" uid="uid://bw0jgw0jen4lg" path="res://converters/item_converter/item_converter_front_4.png" id="10_fjv52"]
[ext_resource type="Texture2D" uid="uid://4tg81ksibacf" path="res://converters/item_converter/item_converter_front_5.png" id="11_cg5dk"]
2023-10-24 18:01:08 +00:00
[ext_resource type="PackedScene" uid="uid://bummw60nyearo" path="res://converters/sound_absorb_lava.tscn" id="14_emabd"]
2023-10-02 21:24:01 +00:00
[ext_resource type="PackedScene" uid="uid://d32fgw4klo4x3" path="res://entity/item/item_crown.tscn" id="14_mioqu"]
[ext_resource type="PackedScene" uid="uid://y2p6j177k3nr" path="res://entity/item/item_ring.tscn" id="14_yt3w3"]
2023-10-24 17:10:44 +00:00
[ext_resource type="PackedScene" uid="uid://b3ev0md0jrpfj" path="res://converters/working_timer.tscn" id="15_38owi"]
[ext_resource type="PackedScene" uid="uid://451ddbtq4163" path="res://entity/item/item_chalice.tscn" id="15_akn63"]
2023-10-24 18:01:08 +00:00
[ext_resource type="AudioStream" uid="uid://dk2acegxjvmgm" path="res://audio/conversione/drop_in_lava.ogg" id="15_dy6lm"]
[ext_resource type="PackedScene" uid="uid://cite8fonsptm8" path="res://converters/sound_working_lava.tscn" id="16_8s7co"]
2023-10-14 00:27:55 +00:00
[ext_resource type="PackedScene" uid="uid://bevj27e1ha8m3" path="res://converters/placement_obstruction.tscn" id="17_udaa3"]
2023-10-24 18:01:08 +00:00
[ext_resource type="PackedScene" uid="uid://bv52h0b0rvpqd" path="res://sound_complete_item.tscn" id="19_qoud2"]
2023-10-02 14:17:34 +00:00
[sub_resource type="AtlasTexture" id="AtlasTexture_uqtie"]
atlas = ExtResource("2_136t7")
region = Rect2(0, 0, 32, 9)
[sub_resource type="AtlasTexture" id="AtlasTexture_aej48"]
atlas = ExtResource("3_6gyd6")
region = Rect2(0, 0, 32, 9)
[sub_resource type="AtlasTexture" id="AtlasTexture_tc0dd"]
atlas = ExtResource("4_bs7n5")
region = Rect2(0, 0, 32, 9)
[sub_resource type="AtlasTexture" id="AtlasTexture_xunws"]
atlas = ExtResource("5_lk4ym")
region = Rect2(0, 0, 32, 9)
[sub_resource type="AtlasTexture" id="AtlasTexture_kf4dp"]
atlas = ExtResource("6_io2km")
region = Rect2(0, 0, 32, 9)
[sub_resource type="SpriteFrames" id="SpriteFrames_psnir"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_uqtie")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_aej48")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_tc0dd")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xunws")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kf4dp")
}],
"loop": true,
"name": &"default",
2023-10-24 17:10:44 +00:00
"speed": 6.0
2023-10-02 14:17:34 +00:00
}]
[sub_resource type="AtlasTexture" id="AtlasTexture_qnpyk"]
atlas = ExtResource("7_khayw")
region = Rect2(0, 5, 32, 27)
[sub_resource type="AtlasTexture" id="AtlasTexture_m7447"]
atlas = ExtResource("8_w6rnl")
region = Rect2(0, 5, 32, 27)
[sub_resource type="AtlasTexture" id="AtlasTexture_5cwul"]
atlas = ExtResource("9_88mk7")
region = Rect2(0, 5, 32, 27)
[sub_resource type="AtlasTexture" id="AtlasTexture_ee880"]
atlas = ExtResource("10_fjv52")
region = Rect2(0, 5, 32, 27)
[sub_resource type="AtlasTexture" id="AtlasTexture_qs650"]
atlas = ExtResource("11_cg5dk")
region = Rect2(0, 5, 32, 27)
[sub_resource type="SpriteFrames" id="SpriteFrames_qqah4"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_qnpyk")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_m7447")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5cwul")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ee880")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qs650")
}],
"loop": true,
"name": &"default",
2023-10-24 17:10:44 +00:00
"speed": 6.0
2023-10-02 14:17:34 +00:00
}]
2023-10-24 17:10:44 +00:00
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_b2tra"]
2023-10-02 14:17:34 +00:00
radius = 1.5
height = 28.0
2023-10-24 17:10:44 +00:00
[sub_resource type="ConvexPolygonShape2D" id="ConvexPolygonShape2D_6ytld"]
points = PackedVector2Array(0, 0, -16, 0, -16, -3, -5, -7, 5, -7, 16, -3, 16, 0)
2023-10-02 14:17:34 +00:00
[sub_resource type="RectangleShape2D" id="RectangleShape2D_k11if"]
size = Vector2(26, 5)
2023-10-24 17:10:44 +00:00
[sub_resource type="RectangleShape2D" id="RectangleShape2D_fb127"]
size = Vector2(16, 4)
2023-10-02 14:17:34 +00:00
2023-10-02 21:24:01 +00:00
[node name="ItemConverter" type="StaticBody2D"]
2023-10-13 22:51:16 +00:00
scale = Vector2(3, 3)
2023-10-02 16:36:55 +00:00
collision_layer = 8
collision_mask = 0
2023-10-02 17:52:20 +00:00
input_pickable = true
2023-10-02 21:24:01 +00:00
script = ExtResource("1_o3eos")
2023-10-02 14:17:34 +00:00
[node name="SpriteBack" type="AnimatedSprite2D" parent="."]
2023-10-24 17:10:44 +00:00
z_index = -2
2023-10-02 14:17:34 +00:00
texture_filter = 1
position = Vector2(0, -14)
sprite_frames = SubResource("SpriteFrames_psnir")
2023-10-02 14:32:23 +00:00
frame_progress = 0.883907
2023-10-02 14:17:34 +00:00
[node name="SpriteFront" type="AnimatedSprite2D" parent="."]
2023-10-02 14:32:23 +00:00
z_index = 2
2023-10-02 14:17:34 +00:00
texture_filter = 1
sprite_frames = SubResource("SpriteFrames_qqah4")
2023-10-14 00:59:38 +00:00
[node name="PlacementObstruction" parent="." instance=ExtResource("17_udaa3")]
2023-10-02 14:17:34 +00:00
[node name="LeftWall" type="CollisionShape2D" parent="."]
z_index = 2
position = Vector2(-14.5, -3)
2023-10-24 17:10:44 +00:00
shape = SubResource("CapsuleShape2D_b2tra")
debug_color = Color(0, 0, 0, 0.784314)
2023-10-02 14:17:34 +00:00
[node name="RightWall" type="CollisionShape2D" parent="."]
z_index = 2
position = Vector2(14.5, -3)
2023-10-24 17:10:44 +00:00
shape = SubResource("CapsuleShape2D_b2tra")
debug_color = Color(0, 0, 0, 0.784314)
2023-10-02 14:17:34 +00:00
2023-10-24 17:10:44 +00:00
[node name="BottomWall" type="CollisionShape2D" parent="."]
2023-10-02 14:17:34 +00:00
z_index = 3
2023-10-24 17:10:44 +00:00
position = Vector2(1.16196e-05, 9.08333)
2023-10-02 14:17:34 +00:00
rotation = 3.14159
2023-10-24 17:10:44 +00:00
shape = SubResource("ConvexPolygonShape2D_6ytld")
2023-10-02 21:43:42 +00:00
one_way_collision = true
2023-10-24 17:10:44 +00:00
debug_color = Color(0, 0, 0, 0.784314)
2023-10-02 14:17:34 +00:00
2023-10-02 21:24:01 +00:00
[node name="GoldCollector" parent="." node_paths=PackedStringArray("sound_absorb") instance=ExtResource("3_qehi7")]
z_index = 2
2023-10-24 17:10:44 +00:00
position = Vector2(0, 6.5)
2023-10-02 21:24:01 +00:00
collecting_types = Array[StringName]([&"Gold"])
2023-10-24 17:10:44 +00:00
sound_absorb = NodePath("SoundAbsorb")
2023-10-02 21:24:01 +00:00
collecting_amount = 25
[node name="CollectShape" type="CollisionShape2D" parent="GoldCollector"]
shape = SubResource("RectangleShape2D_k11if")
debug_color = Color(0, 0.701961, 0.188235, 0.419608)
2023-10-24 18:01:08 +00:00
[node name="SoundAbsorb" parent="GoldCollector" instance=ExtResource("14_emabd")]
stream = ExtResource("15_dy6lm")
pitch_scale = 1.66
2023-10-24 17:10:44 +00:00
2023-10-02 21:24:01 +00:00
[node name="GemCollector" parent="." node_paths=PackedStringArray("sound_absorb") instance=ExtResource("3_qehi7")]
2023-10-02 14:17:34 +00:00
z_index = 2
2023-10-24 17:10:44 +00:00
position = Vector2(0, 6.5)
2023-10-02 21:24:01 +00:00
collecting_types = Array[StringName]([&"Gem"])
2023-10-24 17:10:44 +00:00
sound_absorb = NodePath("SoundAbsorb")
2023-10-02 14:17:34 +00:00
collecting_amount = 10
2023-10-02 21:24:01 +00:00
[node name="CollectShape" type="CollisionShape2D" parent="GemCollector"]
2023-10-02 14:17:34 +00:00
shape = SubResource("RectangleShape2D_k11if")
debug_color = Color(0, 0.701961, 0.188235, 0.419608)
2023-10-24 18:01:08 +00:00
[node name="SoundAbsorb" parent="GemCollector" instance=ExtResource("14_emabd")]
stream = ExtResource("15_dy6lm")
2023-10-24 17:10:44 +00:00
[node name="WorkingTimer" parent="." node_paths=PackedStringArray("working_sound") instance=ExtResource("15_38owi")]
wait_time = 2.2
working_sound = NodePath("SoundWorking")
2023-10-24 18:01:08 +00:00
[node name="SoundWorking" parent="WorkingTimer" instance=ExtResource("16_8s7co")]
volume_db = 3.0
pitch_scale = 0.88
2023-10-24 17:10:44 +00:00
2023-10-02 21:24:01 +00:00
[node name="RingSpawner" parent="." node_paths=PackedStringArray("sound_complete") instance=ExtResource("4_ihtl7")]
2023-10-24 17:10:44 +00:00
position = Vector2(0, 10)
scene = ExtResource("14_yt3w3")
2023-10-02 21:24:01 +00:00
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
2023-10-24 17:10:44 +00:00
sound_complete = NodePath("SoundComplete")
2023-10-24 18:01:08 +00:00
sound_complete_pitch_min = 1.33
sound_complete_pitch_max = 1.33
2023-10-02 21:24:01 +00:00
[node name="PreventSpawnShape" type="CollisionShape2D" parent="RingSpawner"]
z_index = 3
2023-10-24 17:10:44 +00:00
position = Vector2(0, 2)
shape = SubResource("RectangleShape2D_fb127")
2023-10-02 21:24:01 +00:00
debug_color = Color(0.701961, 0, 0, 0.419608)
2023-10-24 18:01:08 +00:00
[node name="SoundComplete" parent="RingSpawner" instance=ExtResource("19_qoud2")]
volume_db = 0.0
pitch_scale = 1.33
2023-10-24 17:10:44 +00:00
2023-10-02 21:24:01 +00:00
[node name="ChaliceSpawner" parent="." node_paths=PackedStringArray("sound_complete") instance=ExtResource("4_ihtl7")]
2023-10-24 17:10:44 +00:00
position = Vector2(0, 10)
scene = ExtResource("15_akn63")
2023-10-02 21:24:01 +00:00
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
2023-10-24 17:10:44 +00:00
sound_complete = NodePath("SoundComplete")
2023-10-02 21:24:01 +00:00
[node name="PreventSpawnShape" type="CollisionShape2D" parent="ChaliceSpawner"]
z_index = 3
2023-10-24 17:10:44 +00:00
position = Vector2(0, 2)
shape = SubResource("RectangleShape2D_fb127")
2023-10-02 21:24:01 +00:00
debug_color = Color(0.701961, 0, 0, 0.419608)
2023-10-24 18:01:08 +00:00
[node name="SoundComplete" parent="ChaliceSpawner" instance=ExtResource("19_qoud2")]
volume_db = 0.0
2023-10-24 17:10:44 +00:00
2023-10-02 21:24:01 +00:00
[node name="CrownSpawner" parent="." node_paths=PackedStringArray("sound_complete") instance=ExtResource("4_ihtl7")]
2023-10-24 17:10:44 +00:00
position = Vector2(0, 10)
2023-10-02 21:24:01 +00:00
scene = ExtResource("14_mioqu")
2023-10-02 14:17:34 +00:00
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
2023-10-24 17:10:44 +00:00
sound_complete = NodePath("SoundComplete")
2023-10-24 18:01:08 +00:00
sound_complete_pitch_min = 0.74
sound_complete_pitch_max = 0.74
2023-10-02 14:17:34 +00:00
2023-10-02 21:24:01 +00:00
[node name="PreventSpawnShape" type="CollisionShape2D" parent="CrownSpawner"]
2023-10-02 14:17:34 +00:00
z_index = 3
2023-10-24 17:10:44 +00:00
position = Vector2(0, 2)
shape = SubResource("RectangleShape2D_fb127")
2023-10-02 14:17:34 +00:00
debug_color = Color(0.701961, 0, 0, 0.419608)
2023-10-24 18:01:08 +00:00
[node name="SoundComplete" parent="CrownSpawner" instance=ExtResource("19_qoud2")]
volume_db = 0.0
pitch_scale = 0.74
2023-10-02 14:32:23 +00:00
2023-10-02 19:42:07 +00:00
[connection signal="input_event" from="." to="." method="_on_input_event"]
2023-10-02 21:24:01 +00:00
[connection signal="collected" from="GoldCollector" to="." method="_on_gold_collector_collected"]
[connection signal="collected" from="GemCollector" to="." method="_on_gem_collector_collected"]
2023-10-24 17:10:44 +00:00
[connection signal="timeout" from="WorkingTimer" to="." method="_on_working_timer_timeout"]
2023-10-02 21:24:01 +00:00
[connection signal="spawned" from="RingSpawner" to="." method="_on_spawner_spawned"]
[connection signal="spawned" from="ChaliceSpawner" to="." method="_on_spawner_spawned"]
[connection signal="spawned" from="CrownSpawner" to="." method="_on_spawner_spawned"]