[gd_scene load_steps=7 format=3 uid="uid://du3005kwybbrh"] [ext_resource type="PhysicsMaterial" uid="uid://c6kn1an85lccr" path="res://entity/coin_physics_material.tres" id="1_nfq5t"] [ext_resource type="Texture2D" uid="uid://dxtstvjlten8p" path="res://entity/coin_gold/coin_gold.png" id="2_1mhvl"] [ext_resource type="Texture2D" uid="uid://bwqsdmghnrmhy" path="res://entity/coin_gold/coin_gold_outline.png" id="3_v0ty1"] [ext_resource type="PackedScene" uid="uid://bk1vvq5rug01m" path="res://collector/collectible.tscn" id="4_t2klm"] [ext_resource type="PackedScene" uid="uid://ujpra0s1kpqi" path="res://value/valuable.tscn" id="5_palpv"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_c6byl"] size = Vector2(27, 5) [node name="CoinGold" type="RigidBody2D"] collision_layer = 4 collision_mask = 6 mass = 2.0 inertia = 600.0 physics_material_override = ExtResource("1_nfq5t") continuous_cd = 1 linear_damp = 0.1 angular_damp = 0.1 [node name="CollisionShape2D" type="CollisionShape2D" parent="."] scale = Vector2(2, 2) shape = SubResource("RectangleShape2D_c6byl") [node name="Sprite" type="Sprite2D" parent="CollisionShape2D"] texture_filter = 1 texture = ExtResource("2_1mhvl") [node name="Outline" type="Sprite2D" parent="CollisionShape2D"] z_index = -1 texture_filter = 1 texture = ExtResource("3_v0ty1") [node name="Collectible" parent="." instance=ExtResource("4_t2klm")] type = &"Gold" [node name="Valuable" parent="." instance=ExtResource("5_palpv")] value = 100 [connection signal="collected" from="Collectible" to="Collectible" method="_on_done"]