1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-11-22 15:44:21 +00:00
swear-jar/entity/gem/gem.tscn

63 lines
2.5 KiB
Text
Raw Normal View History

2023-10-24 22:02:38 +00:00
[gd_scene load_steps=12 format=3 uid="uid://bawprh8kluilq"]
2023-10-02 12:58:17 +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_bt3de"]
2023-10-02 12:58:17 +00:00
[ext_resource type="Texture2D" uid="uid://b21bsbo5f0ed7" path="res://entity/gem/gemstone.png" id="3_6jejy"]
2023-10-02 13:45:13 +00:00
[ext_resource type="PackedScene" uid="uid://vkvtap437nnf" path="res://color/colored.tscn" id="4_2cetq"]
2023-10-02 12:58:17 +00:00
[ext_resource type="PackedScene" uid="uid://bk1vvq5rug01m" path="res://collector/collectible.tscn" id="4_idoeu"]
[ext_resource type="PackedScene" uid="uid://ujpra0s1kpqi" path="res://value/valuable.tscn" id="5_7bd6c"]
2023-10-02 13:45:13 +00:00
[ext_resource type="Shader" path="res://entity/gem/gem_shading_material.gdshader" id="5_v6ppl"]
2023-10-24 22:02:38 +00:00
[ext_resource type="PackedScene" uid="uid://cvh8h0qfylp1x" path="res://noise/noisy.tscn" id="8_ehkpn"]
[ext_resource type="AudioStream" uid="uid://b5b2wile3yfoj" path="res://audio/coin/gem_gem_randomizer.tres" id="9_5me71"]
[ext_resource type="PackedScene" uid="uid://67pl0enqttmi" path="res://noise/sound_contact.tscn" id="9_53f7x"]
[ext_resource type="AudioStream" uid="uid://gu3d7jpurudc" path="res://audio/coin/coin_glass_randomizer.tres" id="10_vkls0"]
2023-10-02 12:58:17 +00:00
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_jkfas"]
2023-10-02 20:29:40 +00:00
radius = 3.5
height = 9.0
2023-10-02 12:58:17 +00:00
[node name="Gem" type="RigidBody2D"]
2023-10-02 16:29:05 +00:00
collision_layer = 4
2023-10-02 16:36:55 +00:00
collision_mask = 14
2023-10-14 01:30:40 +00:00
mass = 8.0
inertia = 1500.0
physics_material_override = ExtResource("1_bt3de")
2023-10-24 22:02:38 +00:00
max_contacts_reported = 1
contact_monitor = true
can_sleep = false
2023-10-02 12:58:17 +00:00
linear_damp = 0.1
angular_damp = 0.1
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
2023-10-02 21:33:32 +00:00
scale = Vector2(3, 3)
2023-10-02 12:58:17 +00:00
shape = SubResource("CapsuleShape2D_jkfas")
[node name="Sprite" type="Sprite2D" parent="CollisionShape2D"]
texture_filter = 1
texture = ExtResource("3_6jejy")
2023-10-02 13:45:13 +00:00
[node name="Colored" parent="CollisionShape2D/Sprite" instance=ExtResource("4_2cetq")]
shader = ExtResource("5_v6ppl")
2023-10-02 12:58:17 +00:00
[node name="Collectible" parent="." instance=ExtResource("4_idoeu")]
2023-10-02 14:32:13 +00:00
type = &"Gem"
2023-10-02 12:58:17 +00:00
[node name="Valuable" parent="." instance=ExtResource("5_7bd6c")]
2023-10-02 16:42:10 +00:00
value = 1000
2023-10-02 12:58:17 +00:00
2023-10-24 22:02:38 +00:00
[node name="Noisy" parent="." instance=ExtResource("8_ehkpn")]
type = &"Gem"
[node name="SoundContactCoin" parent="Noisy" instance=ExtResource("9_53f7x")]
stream = ExtResource("10_vkls0")
type = &"Coin"
min_velocity = 100.0
[node name="SoundContactGem" parent="Noisy" instance=ExtResource("9_53f7x")]
stream = ExtResource("9_5me71")
volume_db = -16.0
pitch_scale = 0.9
type = &"Gem"
min_velocity = 100.0
[connection signal="body_entered" from="." to="Noisy" method="_on_body_entered"]