2023-10-24 22:02:38 +00:00
|
|
|
[gd_scene load_steps=13 format=3 uid="uid://d32fgw4klo4x3"]
|
2023-10-02 16:17:55 +00:00
|
|
|
|
|
|
|
[ext_resource type="PhysicsMaterial" uid="uid://c6kn1an85lccr" path="res://entity/coin_physics_material.tres" id="1_j1ug7"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://brlo5pqo0x86l" path="res://entity/item/item_crown.png" id="2_4mgp8"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://l7kr24oe0fc8" path="res://entity/item/item_crown_gems.png" id="3_cpnmq"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://vkvtap437nnf" path="res://color/colored.tscn" id="4_ttx03"]
|
|
|
|
[ext_resource type="Shader" path="res://entity/gem/gem_shading_material.gdshader" id="5_c6qlx"]
|
2023-10-02 23:39:54 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://bk1vvq5rug01m" path="res://collector/collectible.tscn" id="6_5xyts"]
|
2023-10-02 16:17:55 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://ujpra0s1kpqi" path="res://value/valuable.tscn" id="7_7rpe6"]
|
2023-10-24 22:02:38 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://cvh8h0qfylp1x" path="res://noise/noisy.tscn" id="8_o35js"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://67pl0enqttmi" path="res://noise/sound_contact.tscn" id="9_bjsmd"]
|
|
|
|
[ext_resource type="AudioStream" uid="uid://d3knuq0635ie0" path="res://audio/coin/coin_coin_randomizer.tres" id="10_kwduk"]
|
|
|
|
[ext_resource type="AudioStream" uid="uid://gu3d7jpurudc" path="res://audio/coin/coin_glass_randomizer.tres" id="11_7ui8j"]
|
2023-10-02 16:17:55 +00:00
|
|
|
|
2023-10-02 21:24:01 +00:00
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_058rf"]
|
|
|
|
radius = 12.25
|
2023-10-02 16:17:55 +00:00
|
|
|
|
|
|
|
[node name="ItemCrown" type="RigidBody2D"]
|
2023-10-02 23:33:38 +00:00
|
|
|
collision_layer = 4
|
|
|
|
collision_mask = 14
|
2023-10-14 01:30:40 +00:00
|
|
|
mass = 48.0
|
|
|
|
inertia = 2500.0
|
2023-10-02 16:17:55 +00:00
|
|
|
physics_material_override = ExtResource("1_j1ug7")
|
2023-10-24 22:02:38 +00:00
|
|
|
max_contacts_reported = 1
|
|
|
|
contact_monitor = true
|
2023-10-02 16:17:55 +00:00
|
|
|
linear_damp = 0.1
|
|
|
|
angular_damp = 0.1
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
2023-10-03 00:17:48 +00:00
|
|
|
scale = Vector2(2, 2)
|
2023-10-02 21:24:01 +00:00
|
|
|
shape = SubResource("CircleShape2D_058rf")
|
2023-10-02 16:17:55 +00:00
|
|
|
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="CollisionShape2D"]
|
|
|
|
texture_filter = 1
|
|
|
|
texture = ExtResource("2_4mgp8")
|
|
|
|
|
|
|
|
[node name="Sprite" type="Sprite2D" parent="CollisionShape2D"]
|
|
|
|
texture_filter = 1
|
|
|
|
texture = ExtResource("3_cpnmq")
|
|
|
|
|
|
|
|
[node name="Colored" parent="CollisionShape2D/Sprite" instance=ExtResource("4_ttx03")]
|
|
|
|
shader = ExtResource("5_c6qlx")
|
|
|
|
|
2023-10-02 23:39:54 +00:00
|
|
|
[node name="Collectible" parent="." instance=ExtResource("6_5xyts")]
|
|
|
|
type = &"Crown"
|
|
|
|
|
2023-10-02 16:17:55 +00:00
|
|
|
[node name="Valuable" parent="." instance=ExtResource("7_7rpe6")]
|
2023-10-03 00:42:58 +00:00
|
|
|
value = 7500
|
2023-10-02 16:17:55 +00:00
|
|
|
|
2023-10-24 22:02:38 +00:00
|
|
|
[node name="Noisy" parent="." instance=ExtResource("8_o35js")]
|
|
|
|
type = &"Coin"
|
|
|
|
|
|
|
|
[node name="SoundContactCoin" parent="Noisy" instance=ExtResource("9_bjsmd")]
|
|
|
|
stream = ExtResource("10_kwduk")
|
|
|
|
type = &"Coin"
|
|
|
|
min_velocity = 100.0
|
|
|
|
|
|
|
|
[node name="SoundContactGem" parent="Noisy" instance=ExtResource("9_bjsmd")]
|
|
|
|
stream = ExtResource("11_7ui8j")
|
|
|
|
type = &"Gem"
|
|
|
|
min_velocity = 100.0
|
|
|
|
|
|
|
|
[connection signal="body_entered" from="." to="Noisy" method="_on_body_entered"]
|