1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-11-24 08:34:19 +00:00
swear-jar/entity/item/item_chalice.tscn

61 lines
2.7 KiB
Text
Raw Permalink Normal View History

2023-10-24 22:02:38 +00:00
[gd_scene load_steps=12 format=3 uid="uid://451ddbtq4163"]
2023-10-02 16:17:55 +00:00
[ext_resource type="PhysicsMaterial" uid="uid://c6kn1an85lccr" path="res://entity/coin_physics_material.tres" id="1_vp2el"]
[ext_resource type="Texture2D" uid="uid://wpen8vmuyvqv" path="res://entity/item/item_chalice.png" id="2_rnc33"]
[ext_resource type="Texture2D" uid="uid://dvthocklcjh15" path="res://entity/item/item_chalice_gems.png" id="3_crdaw"]
[ext_resource type="PackedScene" uid="uid://vkvtap437nnf" path="res://color/colored.tscn" id="4_n40wg"]
[ext_resource type="Shader" path="res://entity/gem/gem_shading_material.gdshader" id="5_bkxhb"]
[ext_resource type="PackedScene" uid="uid://ujpra0s1kpqi" path="res://value/valuable.tscn" id="7_0qpb5"]
2023-10-24 22:02:38 +00:00
[ext_resource type="PackedScene" uid="uid://cvh8h0qfylp1x" path="res://noise/noisy.tscn" id="8_54g2j"]
2023-10-02 23:39:54 +00:00
[ext_resource type="PackedScene" uid="uid://bk1vvq5rug01m" path="res://collector/collectible.tscn" id="8_ghhw4"]
2023-10-24 22:02:38 +00:00
[ext_resource type="PackedScene" uid="uid://67pl0enqttmi" path="res://noise/sound_contact.tscn" id="9_v7j8f"]
[ext_resource type="AudioStream" uid="uid://d3knuq0635ie0" path="res://audio/coin/coin_coin_randomizer.tres" id="10_epgea"]
[ext_resource type="AudioStream" uid="uid://gu3d7jpurudc" path="res://audio/coin/coin_glass_randomizer.tres" id="11_rtt0g"]
2023-10-02 16:17:55 +00:00
[node name="ItemChalice" 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 = 24.0
inertia = 1250.0
2023-10-02 16:17:55 +00:00
physics_material_override = ExtResource("1_vp2el")
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
2023-10-02 21:24:01 +00:00
[node name="CollisionShape2D" type="CollisionPolygon2D" parent="."]
2023-10-02 22:15:44 +00:00
scale = Vector2(1.2, 1.2)
2023-10-02 21:24:01 +00:00
polygon = PackedVector2Array(0, -15, -11.5, -13, -10.5, -1, -2.5, 5, -2.5, 8, -8.5, 12, -4.5, 15, 4.5, 15, 8.5, 12, 2.5, 8, 2.5, 5, 10.5, -1, 11.5, -12.75)
2023-10-02 16:17:55 +00:00
[node name="Sprite2D" type="Sprite2D" parent="CollisionShape2D"]
texture_filter = 1
texture = ExtResource("2_rnc33")
[node name="Sprite" type="Sprite2D" parent="CollisionShape2D"]
texture_filter = 1
texture = ExtResource("3_crdaw")
[node name="Colored" parent="CollisionShape2D/Sprite" instance=ExtResource("4_n40wg")]
shader = ExtResource("5_bkxhb")
2023-10-02 23:39:54 +00:00
[node name="Collectible" parent="." instance=ExtResource("8_ghhw4")]
type = &"Chalice"
2023-10-02 16:17:55 +00:00
[node name="Valuable" parent="." instance=ExtResource("7_0qpb5")]
2023-10-03 00:42:58 +00:00
value = 5000
2023-10-02 16:17:55 +00:00
2023-10-24 22:02:38 +00:00
[node name="Noisy" parent="." instance=ExtResource("8_54g2j")]
type = &"Coin"
[node name="SoundContactCoin" parent="Noisy" instance=ExtResource("9_v7j8f")]
stream = ExtResource("10_epgea")
type = &"Coin"
min_velocity = 100.0
[node name="SoundContactGem" parent="Noisy" instance=ExtResource("9_v7j8f")]
stream = ExtResource("11_rtt0g")
type = &"Gem"
min_velocity = 100.0
[connection signal="body_entered" from="." to="Noisy" method="_on_body_entered"]