ld-56/components/Cursor/Cursor.tscn

41 lines
1.6 KiB
Text
Raw Normal View History

2024-10-07 18:53:09 +00:00
[gd_scene load_steps=7 format=3 uid="uid://qecwga1b4yqn"]
2024-10-06 08:22:46 +00:00
[ext_resource type="Script" path="res://components/Cursor/cursor.gd" id="1_nmkwm"]
2024-10-07 05:05:27 +00:00
[ext_resource type="Texture2D" uid="uid://kd8031vdmxb8" path="res://components/Cursor/normal-1.png" id="2_ucp64"]
2024-10-07 18:53:09 +00:00
[ext_resource type="AudioStream" uid="uid://b1625im32ajr2" path="res://sfx/error can't put down creature.wav" id="3_68rl2"]
[ext_resource type="AudioStream" uid="uid://da4gfw2de7at" path="res://sfx/put down.wav" id="4_vcjyr"]
[ext_resource type="AudioStream" uid="uid://bqn8ygvwt58sg" path="res://sfx/pick up.wav" id="5_mmqlh"]
2024-10-06 08:22:46 +00:00
[sub_resource type="RectangleShape2D" id="RectangleShape2D_4cq27"]
2024-10-07 21:37:16 +00:00
size = Vector2(4, 4)
2024-10-06 08:22:46 +00:00
2024-10-07 22:44:32 +00:00
[node name="Cursor" type="CanvasLayer" groups=["Cursor"]]
2024-10-07 05:05:27 +00:00
process_mode = 3
2024-10-06 08:22:46 +00:00
script = ExtResource("1_nmkwm")
[node name="MouseControl" type="Area2D" parent="."]
2024-10-07 05:05:27 +00:00
input_pickable = false
2024-10-06 08:22:46 +00:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="MouseControl"]
shape = SubResource("RectangleShape2D_4cq27")
[node name="Sprite2D" type="Sprite2D" parent="MouseControl"]
2024-10-07 08:25:58 +00:00
visible = false
2024-10-07 05:05:27 +00:00
position = Vector2(2, 4)
texture = ExtResource("2_ucp64")
2024-10-06 08:22:46 +00:00
2024-10-07 18:53:09 +00:00
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("3_68rl2")
volume_db = -10.0
[node name="AudioStreamPlayer2" type="AudioStreamPlayer" parent="."]
stream = ExtResource("4_vcjyr")
volume_db = -10.0
[node name="AudioStreamPlayer3" type="AudioStreamPlayer" parent="."]
stream = ExtResource("5_mmqlh")
volume_db = -10.0
2024-10-06 08:22:46 +00:00
[connection signal="area_entered" from="MouseControl" to="." method="_on_mouse_control_area_entered"]
[connection signal="area_exited" from="MouseControl" to="." method="_on_mouse_control_area_exited"]