ld-56/src/Coin.tscn

22 lines
876 B
Text
Raw Normal View History

2024-10-07 18:53:09 +00:00
[gd_scene load_steps=5 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"]
[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")
[connection signal="hovered" from="MouseHandler" to="." method="_on_mouse_handler_hovered"]