1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-11-24 16:44:20 +00:00
swear-jar/entity/coal_diamond/coal.tscn

46 lines
1.9 KiB
Text
Raw Normal View History

2023-10-24 22:02:38 +00:00
[gd_scene load_steps=8 format=3 uid="uid://diy8fj7mcc00p"]
2023-10-02 18:36:00 +00:00
2023-10-14 01:30:40 +00:00
[ext_resource type="PhysicsMaterial" uid="uid://b2ghrg3vynbi8" path="res://entity/coal_physics_material.tres" id="1_03a3j"]
2023-10-02 20:29:40 +00:00
[ext_resource type="Texture2D" uid="uid://bnfwmlf7ems16" path="res://entity/coal_diamond/coal.png" id="2_ok4kf"]
2023-10-02 18:36:00 +00:00
[ext_resource type="PackedScene" uid="uid://bk1vvq5rug01m" path="res://collector/collectible.tscn" id="4_e8hbs"]
[ext_resource type="PackedScene" uid="uid://ujpra0s1kpqi" path="res://value/valuable.tscn" id="5_3e4d8"]
2023-10-24 22:02:38 +00:00
[ext_resource type="PackedScene" uid="uid://cvh8h0qfylp1x" path="res://noise/noisy.tscn" id="5_qa3q5"]
[ext_resource type="PackedScene" uid="uid://67pl0enqttmi" path="res://noise/sound_contact.tscn" id="6_xpspa"]
[ext_resource type="AudioStream" uid="uid://bwo63mo5jge76" path="res://audio/coin/coal_coal_randomizer.tres" id="7_neu72"]
2023-10-02 18:36:00 +00:00
[node name="Coal" type="RigidBody2D"]
collision_layer = 4
collision_mask = 14
2023-10-14 01:30:40 +00:00
mass = 0.5
inertia = 300.0
physics_material_override = ExtResource("1_03a3j")
2023-10-24 22:02:38 +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(-4.5, 8, 4.5, 8, 8.5, 4, 8.5, -3, 3.5, -8, -3.5, -8, -7.5, -4, -8.5, 0, -8.5, 3)
2023-10-02 18:36:00 +00:00
[node name="Sprite" type="Sprite2D" parent="CollisionShape2D"]
texture_filter = 1
2023-10-02 20:29:40 +00:00
texture = ExtResource("2_ok4kf")
2023-10-02 18:36:00 +00:00
[node name="Collectible" parent="." instance=ExtResource("4_e8hbs")]
type = &"Coal"
[node name="Valuable" parent="." instance=ExtResource("5_3e4d8")]
2023-10-24 22:02:38 +00:00
[node name="Noisy" parent="." instance=ExtResource("5_qa3q5")]
type = &"Rock"
[node name="SoundContactCoin" parent="Noisy" instance=ExtResource("6_xpspa")]
stream = ExtResource("7_neu72")
volume_db = -8.0
type = &"Rock"
min_velocity = 100.0
[connection signal="body_entered" from="." to="Noisy" method="_on_body_entered"]