2023-10-02 14:32:27 +00:00
|
|
|
[gd_scene load_steps=23 format=3 uid="uid://c4ew8x4gch275"]
|
2023-10-02 12:58:17 +00:00
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://converters/converter.gd" id="1_f5plk"]
|
2023-10-02 14:17:34 +00:00
|
|
|
[ext_resource type="Texture2D" uid="uid://chc8wqc1pclbk" path="res://converters/gold_to_gem/gold_converter_back.png" id="2_icys1"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://dgw5ip5qf5k7a" path="res://converters/gold_to_gem/gold_converter_front_1.png" id="3_n6auo"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://h7hu4paxjq84" path="res://converters/gold_to_gem/gold_converter_front_2.png" id="4_dxxyk"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://dlog0f5nk4b3c" path="res://converters/gold_to_gem/gold_converter_front_3.png" id="5_lnr8u"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://cj5m5k0hr3wmw" path="res://converters/gold_to_gem/gold_converter_front_4.png" id="6_nh41p"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://b5uershakuq20" path="res://converters/gold_to_gem/gold_converter_front_5.png" id="7_jfv3m"]
|
2023-10-02 12:58:17 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://c5w3b55aiui6c" path="res://collector/collector.tscn" id="7_m34js"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://c67lfbk4gf1ga" path="res://spawner/spawner.tscn" id="8_qwbjp"]
|
2023-10-02 13:57:26 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://bawprh8kluilq" path="res://entity/gem/gem.tscn" id="9_2ugi1"]
|
2023-10-02 12:58:17 +00:00
|
|
|
[ext_resource type="AudioStream" uid="uid://br25ip30mu174" path="res://audio/conversione/mechanic_sound.wav" id="10_f1h6i"]
|
|
|
|
[ext_resource type="AudioStream" uid="uid://7tw5efuo3gxj" path="res://audio/conversione/coin_to_coin.wav" id="11_ywwn2"]
|
|
|
|
|
2023-10-02 13:24:18 +00:00
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_wy1v3"]
|
2023-10-02 14:17:34 +00:00
|
|
|
atlas = ExtResource("3_n6auo")
|
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 14:17:34 +00:00
|
|
|
atlas = ExtResource("4_dxxyk")
|
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 14:17:34 +00:00
|
|
|
atlas = ExtResource("5_lnr8u")
|
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 14:17:34 +00:00
|
|
|
atlas = ExtResource("6_nh41p")
|
2023-10-02 13:24:18 +00:00
|
|
|
region = Rect2(0, 4, 32, 31)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_600qi"]
|
2023-10-02 14:17:34 +00:00
|
|
|
atlas = ExtResource("7_jfv3m")
|
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",
|
|
|
|
"speed": 15.0
|
|
|
|
}]
|
|
|
|
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_aslkt"]
|
|
|
|
radius = 1.5
|
|
|
|
height = 28.0
|
|
|
|
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_31dtl"]
|
|
|
|
size = Vector2(26, 4)
|
|
|
|
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_k11if"]
|
|
|
|
size = Vector2(26, 5)
|
|
|
|
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_jeo5f"]
|
|
|
|
size = Vector2(26, 8.83334)
|
|
|
|
|
2023-10-02 13:50:25 +00:00
|
|
|
[node name="GemConverter" type="StaticBody2D" node_paths=PackedStringArray("sprite_front", "conversion_timer", "sound_working", "sound_complete", "spawner")]
|
2023-10-02 12:58:17 +00:00
|
|
|
scale = Vector2(3, 3)
|
2023-10-02 14:22:03 +00:00
|
|
|
collision_layer = 8
|
|
|
|
collision_mask = 0
|
2023-10-02 12:58:17 +00:00
|
|
|
script = ExtResource("1_f5plk")
|
2023-10-02 13:50:25 +00:00
|
|
|
sprite_front = NodePath("SpriteFront")
|
|
|
|
conversion_timer = NodePath("ConversionTimer")
|
|
|
|
sound_working = NodePath("SoundWorking")
|
|
|
|
sound_complete = NodePath("SoundComplete")
|
|
|
|
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 14:17:34 +00:00
|
|
|
texture = ExtResource("2_icys1")
|
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
|
|
|
|
|
|
|
[node name="LeftWall" type="CollisionShape2D" parent="."]
|
|
|
|
z_index = 2
|
|
|
|
position = Vector2(-14.5, -3)
|
|
|
|
shape = SubResource("CapsuleShape2D_aslkt")
|
|
|
|
|
|
|
|
[node name="RightWall" type="CollisionShape2D" parent="."]
|
|
|
|
z_index = 2
|
|
|
|
position = Vector2(14.5, -3)
|
|
|
|
shape = SubResource("CapsuleShape2D_aslkt")
|
|
|
|
|
|
|
|
[node name="InnerWall" type="CollisionShape2D" parent="."]
|
|
|
|
z_index = 3
|
|
|
|
position = Vector2(0, 4.5)
|
|
|
|
rotation = 3.14159
|
|
|
|
shape = SubResource("RectangleShape2D_31dtl")
|
|
|
|
|
|
|
|
[node name="Collector" parent="." instance=ExtResource("7_m34js")]
|
|
|
|
z_index = 2
|
2023-10-02 13:04:42 +00:00
|
|
|
collecting_types = Array[StringName]([&"Gold"])
|
2023-10-02 12:58:17 +00:00
|
|
|
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="Spawner" parent="." instance=ExtResource("8_qwbjp")]
|
|
|
|
position = Vector2(0, 8)
|
2023-10-02 13:50:25 +00:00
|
|
|
scene = ExtResource("9_2ugi1")
|
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
|
|
|
|
|
|
|
|
[node name="PreventSpawnShape" type="CollisionShape2D" parent="Spawner"]
|
|
|
|
z_index = 3
|
|
|
|
position = Vector2(0, 3.5)
|
|
|
|
shape = SubResource("RectangleShape2D_jeo5f")
|
|
|
|
debug_color = Color(0.701961, 0, 0, 0.419608)
|
|
|
|
|
|
|
|
[node name="ConversionTimer" type="Timer" parent="."]
|
|
|
|
wait_time = 0.5
|
|
|
|
one_shot = true
|
|
|
|
|
|
|
|
[node name="SoundAbsorb" type="AudioStreamPlayer" parent="."]
|
|
|
|
stream = ExtResource("10_f1h6i")
|
|
|
|
|
|
|
|
[node name="SoundWorking" type="AudioStreamPlayer" parent="."]
|
|
|
|
stream = ExtResource("10_f1h6i")
|
|
|
|
|
|
|
|
[node name="SoundComplete" type="AudioStreamPlayer" parent="."]
|
|
|
|
stream = ExtResource("11_ywwn2")
|
|
|
|
|
|
|
|
[connection signal="collected" from="Collector" to="." method="_on_collector_collected" flags=18]
|
|
|
|
[connection signal="goal" from="Collector" to="." method="_on_collector_goal" flags=18]
|
|
|
|
[connection signal="timeout" from="ConversionTimer" to="." method="_on_timer_timeout" flags=18]
|