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

53 lines
2 KiB
Text
Raw Normal View History

2023-10-02 16:42:58 +00:00
[gd_scene load_steps=8 format=3 uid="uid://c3kitncwpi42j"]
2023-09-30 16:44:01 +00:00
2023-10-01 23:36:51 +00:00
[ext_resource type="PhysicsMaterial" uid="uid://c6kn1an85lccr" path="res://entity/coin_physics_material.tres" id="1_1fypc"]
[ext_resource type="Texture2D" uid="uid://dbdkb4vt7dh85" path="res://entity/coin_copper/coin_copper_4.png" id="2_4pvkj"]
[ext_resource type="Texture2D" uid="uid://2vtvoj6ua3cb" path="res://entity/coin_copper/coin_copper_outline_2.png" id="3_dq1f7"]
[ext_resource type="PackedScene" uid="uid://bk1vvq5rug01m" path="res://collector/collectible.tscn" id="4_npwn2"]
[ext_resource type="PackedScene" uid="uid://ujpra0s1kpqi" path="res://value/valuable.tscn" id="5_fd0r7"]
2023-10-02 20:12:29 +00:00
[ext_resource type="AudioStream" uid="uid://ds2rl6eg5jr1" path="res://audio/tap/click5.wav" id="7_fxd28"]
2023-09-30 16:44:01 +00:00
[sub_resource type="RectangleShape2D" id="RectangleShape2D_c6byl"]
2023-10-01 22:57:14 +00:00
size = Vector2(14, 3)
2023-09-30 16:44:01 +00:00
2023-10-02 13:50:25 +00:00
[node name="CoinCopper" 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-01 22:57:14 +00:00
inertia = 1000.0
2023-10-01 23:36:51 +00:00
physics_material_override = ExtResource("1_1fypc")
2023-09-30 17:19:04 +00:00
continuous_cd = 1
can_sleep = false
2023-09-30 17:24:28 +00:00
linear_damp = 0.1
angular_damp = 0.1
2023-09-30 16:44:01 +00:00
2023-09-30 18:36:43 +00:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
2023-10-02 21:33:32 +00:00
scale = Vector2(1.5, 1.5)
2023-09-30 18:36:43 +00:00
shape = SubResource("RectangleShape2D_c6byl")
2023-09-30 16:44:01 +00:00
2023-09-30 18:36:43 +00:00
[node name="Sprite" type="Sprite2D" parent="CollisionShape2D"]
2023-09-30 17:20:51 +00:00
texture_filter = 1
2023-10-01 23:36:51 +00:00
texture = ExtResource("2_4pvkj")
2023-09-30 17:20:51 +00:00
2023-09-30 18:36:43 +00:00
[node name="Outline" type="Sprite2D" parent="CollisionShape2D"]
2023-10-02 01:15:19 +00:00
z_index = -1
2023-09-30 18:36:43 +00:00
texture_filter = 1
2023-10-01 23:36:51 +00:00
texture = ExtResource("3_dq1f7")
2023-10-01 01:20:47 +00:00
2023-10-01 23:36:51 +00:00
[node name="Collectible" parent="." instance=ExtResource("4_npwn2")]
type = &"Copper"
2023-10-01 23:36:23 +00:00
2023-10-01 23:36:51 +00:00
[node name="Valuable" parent="." instance=ExtResource("5_fd0r7")]
2023-10-01 23:36:23 +00:00
value = 1
2023-10-02 03:31:31 +00:00
2023-10-02 09:13:16 +00:00
[node name="sound_touch" type="AudioStreamPlayer" parent="."]
stream = ExtResource("7_fxd28")
volume_db = -24.397
[node name="Timer" type="Timer" parent="."]
wait_time = 2.108
one_shot = true
2023-10-02 19:29:05 +00:00
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="body_exited" from="." to="." method="_on_body_exited"]
[connection signal="sleeping_state_changed" from="." to="." method="_on_sleeping_state_changed"]