1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-11-29 10:54:18 +00:00
swear-jar/entity/coin_gold/coin_gold.tscn

61 lines
2.4 KiB
Text
Raw Normal View History

2023-10-24 22:02:38 +00:00
[gd_scene load_steps=11 format=3 uid="uid://du3005kwybbrh"]
2023-10-02 01:14:45 +00:00
[ext_resource type="PhysicsMaterial" uid="uid://c6kn1an85lccr" path="res://entity/coin_physics_material.tres" id="1_nfq5t"]
[ext_resource type="Texture2D" uid="uid://dxtstvjlten8p" path="res://entity/coin_gold/coin_gold.png" id="2_1mhvl"]
[ext_resource type="Texture2D" uid="uid://bwqsdmghnrmhy" path="res://entity/coin_gold/coin_gold_outline.png" id="3_v0ty1"]
[ext_resource type="PackedScene" uid="uid://bk1vvq5rug01m" path="res://collector/collectible.tscn" id="4_t2klm"]
[ext_resource type="PackedScene" uid="uid://ujpra0s1kpqi" path="res://value/valuable.tscn" id="5_palpv"]
2023-10-24 22:02:38 +00:00
[ext_resource type="PackedScene" uid="uid://cvh8h0qfylp1x" path="res://noise/noisy.tscn" id="6_qbtaa"]
[ext_resource type="PackedScene" uid="uid://67pl0enqttmi" path="res://noise/sound_contact.tscn" id="7_bv4nd"]
[ext_resource type="AudioStream" uid="uid://d3knuq0635ie0" path="res://audio/coin/coin_coin_randomizer.tres" id="8_wq2hx"]
[ext_resource type="AudioStream" uid="uid://gu3d7jpurudc" path="res://audio/coin/coin_glass_randomizer.tres" id="9_wcgyq"]
2023-10-02 01:14:45 +00:00
[sub_resource type="RectangleShape2D" id="RectangleShape2D_c6byl"]
2023-10-02 21:24:01 +00:00
size = Vector2(27, 5)
2023-10-02 01:14:45 +00:00
[node name="CoinGold" 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-02 01:14:45 +00:00
mass = 2.0
inertia = 600.0
physics_material_override = ExtResource("1_nfq5t")
2023-10-24 22:02:38 +00:00
max_contacts_reported = 1
contact_monitor = true
can_sleep = false
2023-10-02 01:14:45 +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(1.5, 1.5)
2023-10-02 01:14:45 +00:00
shape = SubResource("RectangleShape2D_c6byl")
[node name="Sprite" type="Sprite2D" parent="CollisionShape2D"]
texture_filter = 1
texture = ExtResource("2_1mhvl")
[node name="Outline" type="Sprite2D" parent="CollisionShape2D"]
z_index = -1
texture_filter = 1
texture = ExtResource("3_v0ty1")
[node name="Collectible" parent="." instance=ExtResource("4_t2klm")]
type = &"Gold"
[node name="Valuable" parent="." instance=ExtResource("5_palpv")]
value = 100
2023-10-24 22:02:38 +00:00
[node name="Noisy" parent="." instance=ExtResource("6_qbtaa")]
type = &"Coin"
[node name="SoundContactCoin" parent="Noisy" instance=ExtResource("7_bv4nd")]
stream = ExtResource("8_wq2hx")
type = &"Coin"
min_velocity = 100.0
[node name="SoundContactGem" parent="Noisy" instance=ExtResource("7_bv4nd")]
stream = ExtResource("9_wcgyq")
type = &"Gem"
min_velocity = 100.0
[connection signal="body_entered" from="." to="Noisy" method="_on_body_entered"]