ld-56/src/Coin.tscn
2024-10-07 17:37:16 -04:00

26 lines
1.1 KiB
Text

[gd_scene load_steps=6 format=3 uid="uid://dyd3gq1oc117t"]
[ext_resource type="PackedScene" uid="uid://dykc1mgg5uopw" path="res://components/Cursor/MouseHandler.tscn" id="1_53keb"]
[ext_resource type="Script" path="res://src/coin.gd" id="1_l62nl"]
[ext_resource type="Texture2D" uid="uid://cndrtahwhbkli" path="res://src/ui/coin.png" id="2_5qokh"]
[ext_resource type="AudioStream" uid="uid://cv6th0edghuyr" path="res://sfx/pick up coin.wav" id="4_rysea"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_6mwyk"]
size = Vector2(8, 8)
[node name="Coin" type="Node2D"]
script = ExtResource("1_l62nl")
[node name="MouseHandler" parent="." instance=ExtResource("1_53keb")]
[node name="CollisionShape2D" type="CollisionShape2D" parent="MouseHandler"]
shape = SubResource("RectangleShape2D_6mwyk")
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("2_5qokh")
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("4_rysea")
volume_db = -11.0
[connection signal="hovered" from="MouseHandler" to="." method="_on_mouse_handler_hovered"]