1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-11-23 16:14:19 +00:00
swear-jar/converters/gold_to_coaldiamond/coal_diamond_converter.tscn

177 lines
7.1 KiB
Text
Raw Normal View History

2023-10-14 00:59:38 +00:00
[gd_scene load_steps=28 format=3 uid="uid://clanhkk4sg47w"]
2023-10-02 17:57:54 +00:00
[ext_resource type="Script" path="res://converters/converter.gd" id="1_mf1ls"]
[ext_resource type="Texture2D" uid="uid://2dhqp2liete7" path="res://converters/gold_to_coaldiamond/diamond_converter_back.png" id="2_nj8gd"]
[ext_resource type="Texture2D" uid="uid://cxbiwq3sjp77w" path="res://converters/gold_to_coaldiamond/diamond_converter_front_1.png" id="3_p4wsd"]
[ext_resource type="Texture2D" uid="uid://crniyi0tyugvv" path="res://converters/gold_to_coaldiamond/diamond_converter_front_2.png" id="4_dr8ra"]
[ext_resource type="Texture2D" uid="uid://d1lb0mobj4rb" path="res://converters/gold_to_coaldiamond/diamond_converter_front_3.png" id="5_4vc4w"]
[ext_resource type="Texture2D" uid="uid://qnw7pse2bog4" path="res://converters/gold_to_coaldiamond/diamond_converter_front_4.png" id="6_tnqfk"]
[ext_resource type="PackedScene" uid="uid://c5w3b55aiui6c" path="res://collector/collector.tscn" id="7_rxm8j"]
[ext_resource type="Texture2D" uid="uid://b3vbqgitwo8la" path="res://converters/gold_to_coaldiamond/diamond_converter_front_5.png" id="7_swl1g"]
[ext_resource type="PackedScene" uid="uid://c67lfbk4gf1ga" path="res://spawner/spawner.tscn" id="8_yel0k"]
2023-10-24 18:01:08 +00:00
[ext_resource type="PackedScene" uid="uid://b7s1gsv72wwo5" path="res://converters/sound_absorb_basic.tscn" id="10_rffmx"]
2023-10-02 18:44:53 +00:00
[ext_resource type="PackedScene" uid="uid://diy8fj7mcc00p" path="res://entity/coal_diamond/coal.tscn" id="10_ry7ak"]
2023-10-02 20:29:40 +00:00
[ext_resource type="PackedScene" uid="uid://cr5tiep20hk0s" path="res://entity/coal_diamond/diamond.tscn" id="11_ekhmr"]
2023-10-14 00:59:38 +00:00
[ext_resource type="PackedScene" uid="uid://b3ev0md0jrpfj" path="res://converters/working_timer.tscn" id="11_svms0"]
2023-10-24 18:01:08 +00:00
[ext_resource type="PackedScene" uid="uid://bj0c8si8r5qc6" path="res://converters/sound_working_basic.tscn" id="12_s5xhf"]
2023-10-14 00:27:55 +00:00
[ext_resource type="PackedScene" uid="uid://bevj27e1ha8m3" path="res://converters/placement_obstruction.tscn" id="12_xld3l"]
2023-10-24 18:01:08 +00:00
[ext_resource type="PackedScene" uid="uid://dbnjstin80gf6" path="res://converters/sound_complete_coal.tscn" id="15_7b66q"]
[ext_resource type="PackedScene" uid="uid://dgun44tkwktvv" path="res://converters/sound_complete_gem.tscn" id="17_iaatb"]
2023-10-02 17:57:54 +00:00
[sub_resource type="AtlasTexture" id="AtlasTexture_00uxa"]
atlas = ExtResource("3_p4wsd")
region = Rect2(0, 3, 32, 29)
[sub_resource type="AtlasTexture" id="AtlasTexture_0f2vm"]
atlas = ExtResource("4_dr8ra")
region = Rect2(0, 3, 32, 29)
[sub_resource type="AtlasTexture" id="AtlasTexture_uspck"]
atlas = ExtResource("5_4vc4w")
region = Rect2(0, 3, 32, 29)
[sub_resource type="AtlasTexture" id="AtlasTexture_q1dp1"]
atlas = ExtResource("6_tnqfk")
region = Rect2(0, 3, 32, 29)
[sub_resource type="AtlasTexture" id="AtlasTexture_y4iew"]
atlas = ExtResource("7_swl1g")
region = Rect2(0, 3, 32, 29)
[sub_resource type="SpriteFrames" id="SpriteFrames_4m3dg"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_00uxa")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0f2vm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_uspck")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_q1dp1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_y4iew")
}],
"loop": true,
"name": &"default",
2023-10-02 20:29:40 +00:00
"speed": 10.0
2023-10-02 17:57:54 +00:00
}]
2023-10-14 00:59:38 +00:00
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_480vn"]
2023-10-02 17:57:54 +00:00
radius = 1.5
height = 28.0
2023-10-14 00:59:38 +00:00
[sub_resource type="ConvexPolygonShape2D" id="ConvexPolygonShape2D_o0ajo"]
points = PackedVector2Array(0, 0, -16, 0, -16, -3, -5, -7, 5, -7, 16, -3, 16, 0)
2023-10-02 17:57:54 +00:00
2023-10-14 00:59:38 +00:00
[sub_resource type="RectangleShape2D" id="RectangleShape2D_apl80"]
2023-10-02 17:57:54 +00:00
size = Vector2(26, 5)
2023-10-14 00:59:38 +00:00
[sub_resource type="RectangleShape2D" id="RectangleShape2D_vi6vj"]
size = Vector2(16, 4)
2023-10-02 17:57:54 +00:00
2023-10-14 00:59:38 +00:00
[node name="CoalDiamondConverter" type="StaticBody2D" node_paths=PackedStringArray("spawner", "spawner_alt")]
2023-10-13 22:51:16 +00:00
scale = Vector2(3, 3)
2023-10-02 17:57:54 +00:00
collision_layer = 8
collision_mask = 0
2023-10-02 20:29:40 +00:00
input_pickable = true
2023-10-02 17:57:54 +00:00
script = ExtResource("1_mf1ls")
2023-10-02 18:44:53 +00:00
spawner = NodePath("Spawner")
2023-10-14 00:59:38 +00:00
spawner_alt = NodePath("Spawner2")
2023-10-02 20:29:40 +00:00
spawner_alt_chance = 0.12
2023-10-02 17:57:54 +00:00
[node name="SpriteBack" type="Sprite2D" parent="."]
z_index = -2
texture_filter = 1
texture = ExtResource("2_nj8gd")
[node name="SpriteFront" type="AnimatedSprite2D" parent="."]
z_index = 2
texture_filter = 1
sprite_frames = SubResource("SpriteFrames_4m3dg")
2023-10-02 18:16:37 +00:00
frame_progress = 0.944486
2023-10-02 17:57:54 +00:00
2023-10-14 00:59:38 +00:00
[node name="PlacementObstruction" parent="." instance=ExtResource("12_xld3l")]
2023-10-02 17:57:54 +00:00
[node name="LeftWall" type="CollisionShape2D" parent="."]
z_index = 2
position = Vector2(-14.5, -3)
2023-10-14 00:59:38 +00:00
shape = SubResource("CapsuleShape2D_480vn")
debug_color = Color(0, 0, 0, 0.784314)
2023-10-02 17:57:54 +00:00
[node name="RightWall" type="CollisionShape2D" parent="."]
z_index = 2
position = Vector2(14.5, -3)
2023-10-14 00:59:38 +00:00
shape = SubResource("CapsuleShape2D_480vn")
debug_color = Color(0, 0, 0, 0.784314)
2023-10-02 17:57:54 +00:00
2023-10-14 00:59:38 +00:00
[node name="BottomWall" type="CollisionShape2D" parent="."]
2023-10-02 17:57:54 +00:00
z_index = 3
2023-10-14 00:59:38 +00:00
position = Vector2(1.16196e-05, 9.08333)
2023-10-02 17:57:54 +00:00
rotation = 3.14159
2023-10-14 00:59:38 +00:00
shape = SubResource("ConvexPolygonShape2D_o0ajo")
2023-10-02 21:43:42 +00:00
one_way_collision = true
2023-10-14 00:59:38 +00:00
debug_color = Color(0, 0, 0, 0.784314)
2023-10-02 17:57:54 +00:00
2023-10-14 00:59:38 +00:00
[node name="Collector" parent="." node_paths=PackedStringArray("sound_absorb") instance=ExtResource("7_rxm8j")]
2023-10-02 17:57:54 +00:00
z_index = 2
2023-10-14 00:59:38 +00:00
position = Vector2(0, 6.5)
2023-10-02 20:29:40 +00:00
collecting_types = Array[StringName]([&"Gold"])
2023-10-14 00:59:38 +00:00
sound_absorb = NodePath("SoundAbsorb")
2023-10-02 17:57:54 +00:00
collecting_amount = 10
[node name="CollectShape" type="CollisionShape2D" parent="Collector"]
2023-10-14 00:59:38 +00:00
shape = SubResource("RectangleShape2D_apl80")
2023-10-02 17:57:54 +00:00
debug_color = Color(0, 0.701961, 0.188235, 0.419608)
2023-10-24 18:01:08 +00:00
[node name="SoundAbsorb" parent="Collector" instance=ExtResource("10_rffmx")]
2023-10-14 00:59:38 +00:00
[node name="WorkingTimer" parent="." node_paths=PackedStringArray("working_sound") instance=ExtResource("11_svms0")]
working_sound = NodePath("SoundWorking")
2023-10-24 18:01:08 +00:00
[node name="SoundWorking" parent="WorkingTimer" instance=ExtResource("12_s5xhf")]
2023-10-14 00:59:38 +00:00
2023-10-14 01:15:48 +00:00
[node name="Spawner" parent="." node_paths=PackedStringArray("sound_complete") instance=ExtResource("8_yel0k")]
2023-10-14 00:59:38 +00:00
position = Vector2(0, 10)
2023-10-02 18:44:53 +00:00
scene = ExtResource("10_ry7ak")
2023-10-02 17:57:54 +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-02 21:24:01 +00:00
sound_complete = NodePath("SoundComplete")
2023-10-02 17:57:54 +00:00
[node name="PreventSpawnShape" type="CollisionShape2D" parent="Spawner"]
z_index = 3
2023-10-14 00:59:38 +00:00
position = Vector2(0, 2)
shape = SubResource("RectangleShape2D_vi6vj")
2023-10-02 17:57:54 +00:00
debug_color = Color(0.701961, 0, 0, 0.419608)
2023-10-24 18:01:08 +00:00
[node name="SoundComplete" parent="Spawner" instance=ExtResource("15_7b66q")]
2023-10-02 21:24:01 +00:00
2023-10-14 01:15:48 +00:00
[node name="Spawner2" parent="." node_paths=PackedStringArray("sound_complete") instance=ExtResource("8_yel0k")]
2023-10-14 00:59:38 +00:00
position = Vector2(0, 10)
2023-10-02 20:29:40 +00:00
scene = ExtResource("11_ekhmr")
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")
2023-10-14 00:59:38 +00:00
[node name="PreventSpawnShape" type="CollisionShape2D" parent="Spawner2"]
2023-10-02 20:29:40 +00:00
z_index = 3
2023-10-14 00:59:38 +00:00
position = Vector2(0, 2)
shape = SubResource("RectangleShape2D_vi6vj")
2023-10-02 20:29:40 +00:00
debug_color = Color(0.701961, 0, 0, 0.419608)
2023-10-24 18:01:08 +00:00
[node name="SoundComplete" parent="Spawner2" instance=ExtResource("17_iaatb")]
2023-10-02 20:29:40 +00:00
2023-10-02 19:42:07 +00:00
[connection signal="input_event" from="." to="." method="_on_input_event"]
2023-10-14 00:59:38 +00:00
[connection signal="goal" from="Collector" to="." method="_on_collector_goal"]
[connection signal="timeout" from="WorkingTimer" to="." method="_on_working_timer_timeout"]