1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-11-28 18:34:18 +00:00
swear-jar/convertors/copper_to_silver.tscn

59 lines
2.3 KiB
Text
Raw Normal View History

2023-10-01 20:36:26 +00:00
[gd_scene load_steps=10 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="Texture2D" uid="uid://b0uefih0ccwp3" path="res://entity/copper_converter_front_1.png" id="2_vm6by"]
[ext_resource type="PackedScene" uid="uid://c5w3b55aiui6c" path="res://collector/collector.tscn" id="3_a4naa"]
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 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_3i6q7"]
size = Vector2(3, 29)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_eqmlo"]
size = Vector2(3, 28)
[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"]
scale = Vector2(3, 3)
script = ExtResource("1_jjv83")
scene = ExtResource("2_orv64")
[node name="CopperConverterFront1" type="Sprite2D" parent="."]
texture_filter = 1
texture = ExtResource("2_vm6by")
[node name="Collector" parent="." instance=ExtResource("3_a4naa")]
collecting_types = Array[StringName]([&"Copper"])
collecting_collision_mask = 4
2023-10-01 20:36:26 +00:00
collecting_amount = 10
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
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(-14.3333, -1)
shape = SubResource("RectangleShape2D_3i6q7")
[node name="CollisionShape2D2" type="CollisionShape2D" parent="."]
position = Vector2(14.5, -1.66667)
shape = SubResource("RectangleShape2D_eqmlo")
[node name="CollisionShape2D3" type="CollisionShape2D" parent="."]
position = Vector2(0, 12.3333)
shape = SubResource("RectangleShape2D_31dtl")
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"]