mirror of
https://github.com/Steffo99/swear-jar.git
synced 2024-11-24 16:44:20 +00:00
64 lines
2.6 KiB
Text
64 lines
2.6 KiB
Text
[gd_scene load_steps=12 format=3 uid="uid://dme22vvfgme5f"]
|
|
|
|
[ext_resource type="PhysicsMaterial" uid="uid://c6kn1an85lccr" path="res://entity/coin_physics_material.tres" id="1_4sq1a"]
|
|
[ext_resource type="Texture2D" uid="uid://m5t74cw8ht5b" path="res://entity/coin_silver/coin_silver_2.png" id="2_0u0up"]
|
|
[ext_resource type="Texture2D" uid="uid://beikajpd08pwr" path="res://entity/coin_silver/coin_silver_outline_2.png" id="3_nxu2p"]
|
|
[ext_resource type="PackedScene" uid="uid://bk1vvq5rug01m" path="res://collector/collectible.tscn" id="4_12sii"]
|
|
[ext_resource type="PackedScene" uid="uid://ujpra0s1kpqi" path="res://value/valuable.tscn" id="5_u3bvw"]
|
|
[ext_resource type="AudioStream" path="res://audio/conversione/mechanic_sound.wav" id="6_tmdfg"]
|
|
[ext_resource type="PackedScene" uid="uid://cvh8h0qfylp1x" path="res://noise/noisy.tscn" id="7_dld10"]
|
|
[ext_resource type="PackedScene" uid="uid://67pl0enqttmi" path="res://noise/sound_contact.tscn" id="8_itis4"]
|
|
[ext_resource type="AudioStream" uid="uid://d3knuq0635ie0" path="res://audio/coin/coin_coin_randomizer.tres" id="9_s8egy"]
|
|
[ext_resource type="AudioStream" uid="uid://gu3d7jpurudc" path="res://audio/coin/coin_glass_randomizer.tres" id="10_fjun1"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_c6byl"]
|
|
size = Vector2(21, 4)
|
|
|
|
[node name="CoinSilver" type="RigidBody2D"]
|
|
collision_layer = 4
|
|
collision_mask = 14
|
|
mass = 1.5
|
|
inertia = 800.0
|
|
physics_material_override = ExtResource("1_4sq1a")
|
|
max_contacts_reported = 1
|
|
contact_monitor = true
|
|
can_sleep = false
|
|
linear_damp = 0.1
|
|
angular_damp = 0.1
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
scale = Vector2(1.5, 1.5)
|
|
shape = SubResource("RectangleShape2D_c6byl")
|
|
|
|
[node name="Sprite" type="Sprite2D" parent="CollisionShape2D"]
|
|
texture_filter = 1
|
|
texture = ExtResource("2_0u0up")
|
|
|
|
[node name="Outline" type="Sprite2D" parent="CollisionShape2D"]
|
|
z_index = -1
|
|
texture_filter = 1
|
|
texture = ExtResource("3_nxu2p")
|
|
|
|
[node name="Collectible" parent="." instance=ExtResource("4_12sii")]
|
|
type = &"Silver"
|
|
|
|
[node name="Valuable" parent="." instance=ExtResource("5_u3bvw")]
|
|
value = 10
|
|
|
|
[node name="SoundWorking" type="AudioStreamPlayer" parent="."]
|
|
stream = ExtResource("6_tmdfg")
|
|
|
|
[node name="Noisy" parent="." instance=ExtResource("7_dld10")]
|
|
type = &"Coin"
|
|
|
|
[node name="SoundContactCoin" parent="Noisy" instance=ExtResource("8_itis4")]
|
|
stream = ExtResource("9_s8egy")
|
|
type = &"Coin"
|
|
min_velocity = 100.0
|
|
|
|
[node name="SoundContactGem" parent="Noisy" instance=ExtResource("8_itis4")]
|
|
stream = ExtResource("10_fjun1")
|
|
type = &"Gem"
|
|
min_velocity = 100.0
|
|
|
|
[connection signal="body_entered" from="." to="Noisy" method="_on_body_entered"]
|