1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-11-25 00:54:19 +00:00
swear-jar/entity/coal_diamond/diamond.tscn

55 lines
2.1 KiB
Text
Raw Permalink Normal View History

2023-10-24 22:02:38 +00:00
[gd_scene load_steps=9 format=3 uid="uid://cr5tiep20hk0s"]
2023-10-02 18:36:00 +00:00
2023-10-14 01:30:40 +00:00
[ext_resource type="PhysicsMaterial" uid="uid://b5egitifjvcqo" path="res://entity/gem_physics_material.tres" id="1_1hg8e"]
2023-10-02 18:36:00 +00:00
[ext_resource type="Texture2D" uid="uid://bquk2q5g6bst5" path="res://entity/coal_diamond/diamond.png" id="2_abwth"]
[ext_resource type="PackedScene" uid="uid://bk1vvq5rug01m" path="res://collector/collectible.tscn" id="3_n4fa5"]
[ext_resource type="PackedScene" uid="uid://ujpra0s1kpqi" path="res://value/valuable.tscn" id="4_yfos5"]
2023-10-24 22:02:38 +00:00
[ext_resource type="PackedScene" uid="uid://cvh8h0qfylp1x" path="res://noise/noisy.tscn" id="5_tj6ht"]
[ext_resource type="PackedScene" uid="uid://67pl0enqttmi" path="res://noise/sound_contact.tscn" id="6_3b3qh"]
[ext_resource type="AudioStream" uid="uid://gu3d7jpurudc" path="res://audio/coin/coin_glass_randomizer.tres" id="7_rj4dj"]
[ext_resource type="AudioStream" uid="uid://b5b2wile3yfoj" path="res://audio/coin/gem_gem_randomizer.tres" id="8_5bprv"]
2023-10-02 18:36:00 +00:00
[node name="Diamond" type="RigidBody2D"]
collision_layer = 4
collision_mask = 14
2023-10-14 01:30:40 +00:00
mass = 10.0
inertia = 1500.0
physics_material_override = ExtResource("1_1hg8e")
2023-10-24 22:47:26 +00:00
max_contacts_reported = 1
contact_monitor = true
can_sleep = false
2023-10-02 18:36:00 +00:00
linear_damp = 0.1
angular_damp = 0.1
2023-10-02 20:29:40 +00:00
[node name="CollisionShape2D" type="CollisionPolygon2D" parent="."]
2023-10-02 21:33:32 +00:00
scale = Vector2(1.5, 1.5)
2023-10-02 20:29:40 +00:00
polygon = PackedVector2Array(0, 8, 10, -2, 4, -8, -4, -8, -10, -2)
2023-10-02 18:36:00 +00:00
[node name="Sprite" type="Sprite2D" parent="CollisionShape2D"]
texture_filter = 1
texture = ExtResource("2_abwth")
[node name="Collectible" parent="." instance=ExtResource("3_n4fa5")]
type = &"Diamond"
[node name="Valuable" parent="." instance=ExtResource("4_yfos5")]
2023-10-02 20:29:40 +00:00
value = 10000
2023-10-24 22:02:38 +00:00
[node name="Noisy" parent="." instance=ExtResource("5_tj6ht")]
type = &"Gem"
[node name="SoundContactCoin" parent="Noisy" instance=ExtResource("6_3b3qh")]
stream = ExtResource("7_rj4dj")
pitch_scale = 1.2
type = &"Coin"
min_velocity = 100.0
[node name="SoundContactGem" parent="Noisy" instance=ExtResource("6_3b3qh")]
stream = ExtResource("8_5bprv")
volume_db = -16.0
pitch_scale = 1.1
type = &"Gem"
min_velocity = 100.0
[connection signal="body_entered" from="." to="Noisy" method="_on_body_entered"]