mirror of
https://github.com/Steffo99/swear-jar.git
synced 2024-11-23 16:14:19 +00:00
133 lines
5.4 KiB
Text
133 lines
5.4 KiB
Text
[gd_scene load_steps=20 format=3 uid="uid://but1bdslxp5jl"]
|
|
|
|
[ext_resource type="Script" path="res://converters/converter.gd" id="1_chhfg"]
|
|
[ext_resource type="Texture2D" uid="uid://c1fu70mb51gyd" path="res://converters/silver_to_gold/silver_converter_back.png" id="2_rpdc3"]
|
|
[ext_resource type="Texture2D" uid="uid://d3xa3cqu73xjd" path="res://converters/silver_to_gold/silver_converter_front_1.png" id="3_pscuu"]
|
|
[ext_resource type="Texture2D" uid="uid://cwycuwkppcjfu" path="res://converters/silver_to_gold/silver_converter_front_2.png" id="4_yq53c"]
|
|
[ext_resource type="Texture2D" uid="uid://b006dig4oebpl" path="res://converters/silver_to_gold/silver_converter_front_3.png" id="5_ycslk"]
|
|
[ext_resource type="Texture2D" uid="uid://djixrek5573a6" path="res://converters/silver_to_gold/silver_converter_front_4.png" id="6_0qxp1"]
|
|
[ext_resource type="PackedScene" uid="uid://c5w3b55aiui6c" path="res://collector/collector.tscn" id="7_3046q"]
|
|
[ext_resource type="PackedScene" uid="uid://c67lfbk4gf1ga" path="res://spawner/spawner.tscn" id="8_65kmt"]
|
|
[ext_resource type="PackedScene" uid="uid://b3ev0md0jrpfj" path="res://converters/working_timer.tscn" id="9_8xv87"]
|
|
[ext_resource type="PackedScene" uid="uid://b7s1gsv72wwo5" path="res://converters/sound_absorb_basic.tscn" id="9_o8xs4"]
|
|
[ext_resource type="PackedScene" uid="uid://du3005kwybbrh" path="res://entity/coin_gold/coin_gold.tscn" id="9_t8y3t"]
|
|
[ext_resource type="PackedScene" uid="uid://bj0c8si8r5qc6" path="res://converters/sound_working_basic.tscn" id="11_1vfvj"]
|
|
[ext_resource type="PackedScene" uid="uid://bevj27e1ha8m3" path="res://converters/placement_obstruction.tscn" id="12_37x2h"]
|
|
[ext_resource type="PackedScene" uid="uid://1nbs4nj3rti1" path="res://converters/sound_complete_basic.tscn" id="14_vjw0q"]
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_1qp6y"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("3_pscuu")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("4_yq53c")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("5_ycslk")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("6_0qxp1")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 15.0
|
|
}]
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_aslkt"]
|
|
radius = 1.5
|
|
height = 28.0
|
|
|
|
[sub_resource type="ConvexPolygonShape2D" id="ConvexPolygonShape2D_emmmj"]
|
|
points = PackedVector2Array(0, 0, -16, 0, -16, -3, -5, -7, 5, -7, 16, -3, 16, 0)
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_k11if"]
|
|
size = Vector2(26, 5)
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_jeo5f"]
|
|
size = Vector2(16, 4)
|
|
|
|
[node name="SilverConverter" type="StaticBody2D" node_paths=PackedStringArray("spawner")]
|
|
position = Vector2(0, -2)
|
|
scale = Vector2(3, 3)
|
|
collision_layer = 8
|
|
collision_mask = 0
|
|
script = ExtResource("1_chhfg")
|
|
spawner = NodePath("Spawner")
|
|
|
|
[node name="SpriteBack" type="Sprite2D" parent="."]
|
|
z_index = -2
|
|
texture_filter = 1
|
|
texture = ExtResource("2_rpdc3")
|
|
|
|
[node name="SpriteFront" type="AnimatedSprite2D" parent="."]
|
|
z_index = 2
|
|
texture_filter = 1
|
|
sprite_frames = SubResource("SpriteFrames_1qp6y")
|
|
frame = 3
|
|
frame_progress = 0.193836
|
|
|
|
[node name="PlacementObstruction" parent="." instance=ExtResource("12_37x2h")]
|
|
|
|
[node name="LeftWall" type="CollisionShape2D" parent="."]
|
|
z_index = 2
|
|
position = Vector2(-14.5, -3)
|
|
shape = SubResource("CapsuleShape2D_aslkt")
|
|
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_aslkt")
|
|
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_emmmj")
|
|
one_way_collision = true
|
|
debug_color = Color(0, 0, 0, 0.784314)
|
|
|
|
[node name="Collector" parent="." node_paths=PackedStringArray("sound_absorb") instance=ExtResource("7_3046q")]
|
|
z_index = 2
|
|
position = Vector2(0, 6.5)
|
|
collecting_types = Array[StringName]([&"Silver"])
|
|
sound_absorb = NodePath("SoundAbsorb")
|
|
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="SoundAbsorb" parent="Collector" instance=ExtResource("9_o8xs4")]
|
|
|
|
[node name="WorkingTimer" parent="." node_paths=PackedStringArray("working_sound") instance=ExtResource("9_8xv87")]
|
|
working_sound = NodePath("SoundWorking")
|
|
|
|
[node name="SoundWorking" parent="WorkingTimer" instance=ExtResource("11_1vfvj")]
|
|
|
|
[node name="Spawner" parent="." node_paths=PackedStringArray("sound_complete") instance=ExtResource("8_65kmt")]
|
|
position = Vector2(0, 10)
|
|
scene = ExtResource("9_t8y3t")
|
|
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")
|
|
sound_complete_pitch_min = 1.1
|
|
sound_complete_pitch_max = 1.14
|
|
|
|
[node name="PreventSpawnShape" type="CollisionShape2D" parent="Spawner"]
|
|
z_index = 3
|
|
position = Vector2(0, 2)
|
|
shape = SubResource("RectangleShape2D_jeo5f")
|
|
debug_color = Color(0.701961, 0, 0, 0.419608)
|
|
|
|
[node name="SoundComplete" parent="Spawner" instance=ExtResource("14_vjw0q")]
|
|
|
|
[connection signal="input_event" from="PlacementObstruction" 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"]
|