1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-11-29 02:44:19 +00:00
swear-jar/convertors/copper_to_silver.tscn

114 lines
4.4 KiB
Text
Raw Normal View History

2023-10-01 22:18:57 +00:00
[gd_scene load_steps=19 format=3 uid="uid://ratkps4plkhl"]
2023-10-01 19:58:40 +00:00
[ext_resource type="Script" path="res://convertors/copper_to_silver.gd" id="1_jjv83"]
[ext_resource type="PackedScene" uid="uid://dme22vvfgme5f" path="res://entity/coin_silver.tscn" id="2_orv64"]
[ext_resource type="PackedScene" uid="uid://c5w3b55aiui6c" path="res://collector/collector.tscn" id="3_a4naa"]
2023-10-01 21:44:40 +00:00
[ext_resource type="AudioStream" uid="uid://br25ip30mu174" path="res://audio/conversione/mechanic_sound.wav" id="3_uxx6n"]
2023-10-01 21:27:05 +00:00
[ext_resource type="Texture2D" uid="uid://dq5aowbt2wxec" path="res://entity/copper_to_silver/copper_converter_front_1.png" id="4_04v4v"]
2023-10-01 20:36:26 +00:00
[ext_resource type="PackedScene" uid="uid://c67lfbk4gf1ga" path="res://spawner/spawner.tscn" id="5_1n0vw"]
2023-10-01 21:27:05 +00:00
[ext_resource type="Texture2D" uid="uid://ck254fewe4l41" path="res://entity/copper_to_silver/copper_converter_front_2.png" id="5_tbfff"]
[ext_resource type="Texture2D" uid="uid://dg4qq1pgojk8d" path="res://entity/copper_to_silver/copper_converter_front_3.png" id="6_8ghce"]
[ext_resource type="Texture2D" uid="uid://60502lbpup6" path="res://entity/copper_to_silver/copper_converter_front_4.png" id="7_e53sb"]
2023-10-01 21:44:40 +00:00
[ext_resource type="AudioStream" uid="uid://7tw5efuo3gxj" path="res://audio/conversione/coin_to_coin.wav" id="10_uc0v7"]
2023-10-01 22:18:57 +00:00
[ext_resource type="Texture2D" uid="uid://440yhlpwpfw4" path="res://entity/copper_converter_back.png" id="11_c4wel"]
2023-10-01 21:27:05 +00:00
[sub_resource type="AtlasTexture" id="AtlasTexture_62dyi"]
atlas = ExtResource("4_04v4v")
region = Rect2(0, 2, 32, 33)
[sub_resource type="AtlasTexture" id="AtlasTexture_gs3wo"]
atlas = ExtResource("5_tbfff")
region = Rect2(0, 2, 32, 33)
[sub_resource type="AtlasTexture" id="AtlasTexture_tboq2"]
atlas = ExtResource("6_8ghce")
region = Rect2(0, 2, 32, 33)
[sub_resource type="AtlasTexture" id="AtlasTexture_okgf4"]
atlas = ExtResource("7_e53sb")
region = Rect2(0, 2, 32, 33)
[sub_resource type="SpriteFrames" id="SpriteFrames_4m3dg"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_62dyi")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_gs3wo")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_tboq2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_okgf4")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
2023-10-01 19:58:40 +00:00
[sub_resource type="RectangleShape2D" id="RectangleShape2D_k11if"]
size = Vector2(26, 5)
2023-10-01 20:36:26 +00:00
[sub_resource type="RectangleShape2D" id="RectangleShape2D_31dtl"]
size = Vector2(25.8333, 5)
2023-10-01 19:58:40 +00:00
[node name="CopperToSilver" type="StaticBody2D"]
2023-10-01 22:18:57 +00:00
scale = Vector2(3, 3)
2023-10-01 19:58:40 +00:00
script = ExtResource("1_jjv83")
scene = ExtResource("2_orv64")
2023-10-01 21:44:40 +00:00
[node name="converter_working" type="AudioStreamPlayer" parent="."]
stream = ExtResource("3_uxx6n")
2023-10-01 21:27:05 +00:00
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
2023-10-01 19:58:40 +00:00
texture_filter = 1
2023-10-01 21:27:05 +00:00
sprite_frames = SubResource("SpriteFrames_4m3dg")
2023-10-01 21:44:40 +00:00
frame_progress = 0.143561
2023-10-01 19:58:40 +00:00
2023-10-01 22:18:57 +00:00
[node name="CopperConverterBack" type="Sprite2D" parent="."]
z_index = -10
texture_filter = 1
position = Vector2(0, -1)
texture = ExtResource("11_c4wel")
2023-10-01 19:58:40 +00:00
[node name="Collector" parent="." instance=ExtResource("3_a4naa")]
collecting_types = Array[StringName]([&"Copper"])
collecting_collision_mask = 4
2023-10-01 22:18:57 +00:00
collecting_amount = 1
2023-10-01 19:58:40 +00:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="Collector"]
position = Vector2(0, 9.5)
shape = SubResource("RectangleShape2D_k11if")
2023-10-01 20:36:26 +00:00
[node name="Spawner" parent="." instance=ExtResource("5_1n0vw")]
position = Vector2(-0.333333, 19.3333)
scene = ExtResource("2_orv64")
buffer_cap = 1
spawn_rotation_range = 90.0
2023-10-01 22:18:57 +00:00
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
polygon = PackedVector2Array(-16, 13.5, -16, -16.5, -14.5, -17.5, -13, -16.5, -13, 13.5)
2023-10-01 20:36:26 +00:00
2023-10-01 22:18:57 +00:00
[node name="CollisionPolygon2D2" type="CollisionPolygon2D" parent="."]
polygon = PackedVector2Array(13, 12.5, 13, -16.5, 14.5, -17.5, 16, -16.5, 16, 12.5)
2023-10-01 20:36:26 +00:00
[node name="CollisionShape2D3" type="CollisionShape2D" parent="."]
position = Vector2(0, 12.3333)
2023-10-01 21:27:05 +00:00
rotation = 3.14159
2023-10-01 20:36:26 +00:00
shape = SubResource("RectangleShape2D_31dtl")
2023-10-01 21:27:05 +00:00
one_way_collision = true
one_way_collision_margin = 8.0
[node name="Timer" type="Timer" parent="."]
2023-10-01 22:18:57 +00:00
wait_time = 0.518
2023-10-01 21:27:05 +00:00
one_shot = true
2023-10-01 19:58:40 +00:00
2023-10-01 21:44:40 +00:00
[node name="New_item" type="AudioStreamPlayer" parent="."]
stream = ExtResource("10_uc0v7")
2023-10-01 19:58:40 +00:00
[connection signal="collected" from="Collector" to="." method="_on_collector_collected"]
[connection signal="goal" from="Collector" to="." method="_on_collector_goal"]
2023-10-01 21:27:05 +00:00
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]