1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-11-24 16:44:20 +00:00
swear-jar/converters/gold_to_gem/gold_converter.tscn

167 lines
6.4 KiB
Text
Raw Normal View History

2023-10-14 00:59:38 +00:00
[gd_scene load_steps=26 format=3 uid="uid://cb1t7ylnkmt3t"]
2023-10-02 15:10:23 +00:00
[ext_resource type="Script" path="res://converters/converter.gd" id="1_fgju3"]
[ext_resource type="Texture2D" uid="uid://chc8wqc1pclbk" path="res://converters/gold_to_gem/gold_converter_back.png" id="2_hh4ft"]
[ext_resource type="Texture2D" uid="uid://dgw5ip5qf5k7a" path="res://converters/gold_to_gem/gold_converter_front_1.png" id="3_ofrsl"]
[ext_resource type="Texture2D" uid="uid://h7hu4paxjq84" path="res://converters/gold_to_gem/gold_converter_front_2.png" id="4_bfibv"]
[ext_resource type="Texture2D" uid="uid://dlog0f5nk4b3c" path="res://converters/gold_to_gem/gold_converter_front_3.png" id="5_grq6d"]
[ext_resource type="Texture2D" uid="uid://cj5m5k0hr3wmw" path="res://converters/gold_to_gem/gold_converter_front_4.png" id="6_m1sjp"]
[ext_resource type="Texture2D" uid="uid://b5uershakuq20" path="res://converters/gold_to_gem/gold_converter_front_5.png" id="7_ccs4f"]
[ext_resource type="PackedScene" uid="uid://c5w3b55aiui6c" path="res://collector/collector.tscn" id="8_77gmi"]
[ext_resource type="PackedScene" uid="uid://c67lfbk4gf1ga" path="res://spawner/spawner.tscn" id="9_ojqfv"]
2023-10-14 00:59:38 +00:00
[ext_resource type="AudioStream" uid="uid://bpxjhl0aq3yrv" path="res://audio/conversione/suck2.wav" id="10_n1vu0"]
2023-10-02 15:10:23 +00:00
[ext_resource type="PackedScene" uid="uid://bawprh8kluilq" path="res://entity/gem/gem.tscn" id="10_op7xt"]
[ext_resource type="AudioStream" uid="uid://br25ip30mu174" path="res://audio/conversione/mechanic_sound.wav" id="11_lofho"]
2023-10-02 20:29:40 +00:00
[ext_resource type="AudioStream" uid="uid://cc4mqxq6mxmdg" path="res://audio/conversione/coin_to_gem.wav" id="11_sk30q"]
2023-10-14 00:59:38 +00:00
[ext_resource type="PackedScene" uid="uid://b3ev0md0jrpfj" path="res://converters/working_timer.tscn" id="11_tm4f6"]
2023-10-14 00:27:55 +00:00
[ext_resource type="PackedScene" uid="uid://bevj27e1ha8m3" path="res://converters/placement_obstruction.tscn" id="13_6o73w"]
2023-10-02 12:58:17 +00:00
2023-10-02 13:24:18 +00:00
[sub_resource type="AtlasTexture" id="AtlasTexture_wy1v3"]
2023-10-02 15:10:23 +00:00
atlas = ExtResource("3_ofrsl")
2023-10-02 13:24:18 +00:00
region = Rect2(0, 4, 32, 31)
2023-10-02 12:58:17 +00:00
2023-10-02 13:24:18 +00:00
[sub_resource type="AtlasTexture" id="AtlasTexture_2164d"]
2023-10-02 15:10:23 +00:00
atlas = ExtResource("4_bfibv")
2023-10-02 13:24:18 +00:00
region = Rect2(0, 4, 32, 31)
2023-10-02 12:58:17 +00:00
2023-10-02 13:24:18 +00:00
[sub_resource type="AtlasTexture" id="AtlasTexture_i5584"]
2023-10-02 15:10:23 +00:00
atlas = ExtResource("5_grq6d")
2023-10-02 13:24:18 +00:00
region = Rect2(0, 4, 32, 31)
2023-10-02 12:58:17 +00:00
2023-10-02 13:24:18 +00:00
[sub_resource type="AtlasTexture" id="AtlasTexture_qad4c"]
2023-10-02 15:10:23 +00:00
atlas = ExtResource("6_m1sjp")
2023-10-02 13:24:18 +00:00
region = Rect2(0, 4, 32, 31)
[sub_resource type="AtlasTexture" id="AtlasTexture_600qi"]
2023-10-02 15:10:23 +00:00
atlas = ExtResource("7_ccs4f")
2023-10-02 13:24:18 +00:00
region = Rect2(0, 4, 32, 31)
2023-10-02 12:58:17 +00:00
[sub_resource type="SpriteFrames" id="SpriteFrames_4m3dg"]
animations = [{
"frames": [{
"duration": 1.0,
2023-10-02 13:24:18 +00:00
"texture": SubResource("AtlasTexture_wy1v3")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_2164d")
2023-10-02 12:58:17 +00:00
}, {
"duration": 1.0,
2023-10-02 13:24:18 +00:00
"texture": SubResource("AtlasTexture_i5584")
2023-10-02 12:58:17 +00:00
}, {
"duration": 1.0,
2023-10-02 13:24:18 +00:00
"texture": SubResource("AtlasTexture_qad4c")
2023-10-02 12:58:17 +00:00
}, {
"duration": 1.0,
2023-10-02 13:24:18 +00:00
"texture": SubResource("AtlasTexture_600qi")
2023-10-02 12:58:17 +00:00
}],
"loop": true,
"name": &"default",
2023-10-02 15:10:23 +00:00
"speed": 10.5
2023-10-02 12:58:17 +00:00
}]
2023-10-14 00:59:38 +00:00
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_qt67l"]
2023-10-02 12:58:17 +00:00
radius = 1.5
height = 28.0
2023-10-14 00:59:38 +00:00
[sub_resource type="ConvexPolygonShape2D" id="ConvexPolygonShape2D_cbvu5"]
points = PackedVector2Array(0, 0, -16, 0, -16, -3, -5, -7, 5, -7, 16, -3, 16, 0)
2023-10-02 12:58:17 +00:00
2023-10-14 00:59:38 +00:00
[sub_resource type="RectangleShape2D" id="RectangleShape2D_hnunv"]
2023-10-02 12:58:17 +00:00
size = Vector2(26, 5)
2023-10-14 00:59:38 +00:00
[sub_resource type="RectangleShape2D" id="RectangleShape2D_h53k7"]
size = Vector2(16, 4)
2023-10-02 12:58:17 +00:00
2023-10-14 00:59:38 +00:00
[node name="GoldConverter" type="StaticBody2D" node_paths=PackedStringArray("spawner")]
2023-10-13 22:51:16 +00:00
scale = Vector2(3, 3)
2023-10-02 14:22:03 +00:00
collision_layer = 8
collision_mask = 0
2023-10-02 17:52:20 +00:00
input_pickable = true
2023-10-02 15:10:23 +00:00
script = ExtResource("1_fgju3")
2023-10-02 13:50:25 +00:00
spawner = NodePath("Spawner")
2023-10-02 12:58:17 +00:00
[node name="SpriteBack" type="Sprite2D" parent="."]
z_index = -2
texture_filter = 1
2023-10-02 15:10:23 +00:00
texture = ExtResource("2_hh4ft")
2023-10-02 12:58:17 +00:00
[node name="SpriteFront" type="AnimatedSprite2D" parent="."]
z_index = 2
texture_filter = 1
2023-10-02 13:24:18 +00:00
position = Vector2(0, 2)
2023-10-02 12:58:17 +00:00
sprite_frames = SubResource("SpriteFrames_4m3dg")
2023-10-02 13:24:18 +00:00
frame_progress = 0.0969002
2023-10-02 12:58:17 +00:00
2023-10-14 00:59:38 +00:00
[node name="PlacementObstruction" parent="." instance=ExtResource("13_6o73w")]
2023-10-02 12:58:17 +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_qt67l")
debug_color = Color(0, 0, 0, 0.784314)
2023-10-02 12:58:17 +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_qt67l")
debug_color = Color(0, 0, 0, 0.784314)
2023-10-02 12:58:17 +00:00
2023-10-14 00:59:38 +00:00
[node name="BottomWall" type="CollisionShape2D" parent="."]
2023-10-02 12:58:17 +00:00
z_index = 3
2023-10-14 00:59:38 +00:00
position = Vector2(1.16196e-05, 9.08333)
2023-10-02 12:58:17 +00:00
rotation = 3.14159
2023-10-14 00:59:38 +00:00
shape = SubResource("ConvexPolygonShape2D_cbvu5")
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 12:58:17 +00:00
2023-10-14 00:59:38 +00:00
[node name="Collector" parent="." node_paths=PackedStringArray("sound_absorb") instance=ExtResource("8_77gmi")]
2023-10-02 12:58:17 +00:00
z_index = 2
2023-10-14 00:59:38 +00:00
position = Vector2(0, 6.5)
2023-10-02 13:04:42 +00:00
collecting_types = Array[StringName]([&"Gold"])
2023-10-14 00:59:38 +00:00
sound_absorb = NodePath("SoundAbsorb")
2023-10-02 12:58:17 +00:00
collecting_amount = 10
[node name="CollectShape" type="CollisionShape2D" parent="Collector"]
2023-10-14 00:59:38 +00:00
shape = SubResource("RectangleShape2D_hnunv")
2023-10-02 12:58:17 +00:00
debug_color = Color(0, 0.701961, 0.188235, 0.419608)
2023-10-14 00:59:38 +00:00
[node name="SoundAbsorb" type="AudioStreamPlayer2D" parent="Collector"]
stream = ExtResource("10_n1vu0")
volume_db = -8.0
pitch_scale = 2.0
2023-10-14 01:15:48 +00:00
max_polyphony = 8
2023-10-14 00:59:38 +00:00
[node name="WorkingTimer" parent="." node_paths=PackedStringArray("working_sound") instance=ExtResource("11_tm4f6")]
working_sound = NodePath("SoundWorking")
[node name="SoundWorking" type="AudioStreamPlayer2D" parent="WorkingTimer"]
position = Vector2(0, 25)
stream = ExtResource("11_lofho")
pitch_scale = 1.08
2023-10-02 20:29:40 +00:00
[node name="Spawner" parent="." node_paths=PackedStringArray("sound_complete") instance=ExtResource("9_ojqfv")]
2023-10-14 00:59:38 +00:00
position = Vector2(0, 10)
2023-10-02 15:10:23 +00:00
scene = ExtResource("10_op7xt")
2023-10-02 12:58:17 +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 20:29:40 +00:00
sound_complete = NodePath("SoundComplete")
2023-10-14 00:59:38 +00:00
sound_complete_pitch_min = 1.88
sound_complete_pitch_max = 2.0
2023-10-02 12:58:17 +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_h53k7")
2023-10-02 12:58:17 +00:00
debug_color = Color(0.701961, 0, 0, 0.419608)
2023-10-14 00:59:38 +00:00
[node name="SoundComplete" type="AudioStreamPlayer2D" parent="Spawner"]
position = Vector2(0, 2)
2023-10-02 20:29:40 +00:00
stream = ExtResource("11_sk30q")
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"]