2024-04-21 22:56:35 +00:00
|
|
|
[gd_scene load_steps=8 format=3 uid="uid://b04xhv32ypi42"]
|
2024-04-21 22:09:04 +00:00
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://entities/monocle.gd" id="1_ehpfj"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://d3tb6ypb36v8e" path="res://entities/monocle.png" id="1_omrit"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://rx24bppccih7" path="res://behaviours/move_physics.tscn" id="2_jgnsw"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://dijcjahkddudv" path="res://behaviours/draggable.tscn" id="3_e0ni5"]
|
2024-04-21 22:56:35 +00:00
|
|
|
[ext_resource type="AudioStream" uid="uid://cwsg776c11xfc" path="res://entities/fall.ogg" id="5_grwug"]
|
2024-04-21 22:09:04 +00:00
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_o7chm"]
|
|
|
|
radius = 12.0
|
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_juisb"]
|
2024-04-21 23:05:21 +00:00
|
|
|
radius = 12.0
|
2024-04-21 22:09:04 +00:00
|
|
|
|
|
|
|
[node name="Monocle" type="CharacterBody2D"]
|
2024-04-21 22:56:35 +00:00
|
|
|
collision_layer = 8
|
|
|
|
collision_mask = 14
|
|
|
|
motion_mode = 1
|
2024-04-21 22:09:04 +00:00
|
|
|
script = ExtResource("1_ehpfj")
|
|
|
|
|
|
|
|
[node name="Sprite" type="Sprite2D" parent="."]
|
|
|
|
scale = Vector2(2, 2)
|
|
|
|
texture = ExtResource("1_omrit")
|
|
|
|
|
|
|
|
[node name="Shape" type="CollisionShape2D" parent="."]
|
|
|
|
shape = SubResource("CircleShape2D_o7chm")
|
|
|
|
|
|
|
|
[node name="MovementDrag" parent="." instance=ExtResource("2_jgnsw")]
|
|
|
|
|
|
|
|
[node name="Draggable" parent="MovementDrag" instance=ExtResource("3_e0ni5")]
|
|
|
|
|
|
|
|
[node name="Shape" type="CollisionShape2D" parent="MovementDrag/Draggable"]
|
|
|
|
shape = SubResource("CircleShape2D_juisb")
|
|
|
|
debug_color = Color(1, 1, 1, 0)
|
|
|
|
|
2024-04-21 22:56:35 +00:00
|
|
|
[node name="DragSound" type="AudioStreamPlayer2D" parent="MovementDrag"]
|
2024-04-21 22:09:04 +00:00
|
|
|
|
2024-04-21 22:56:35 +00:00
|
|
|
[node name="FallSound" type="AudioStreamPlayer2D" parent="MovementDrag"]
|
|
|
|
stream = ExtResource("5_grwug")
|
|
|
|
|
|
|
|
[connection signal="dragged" from="MovementDrag" to="." method="_on_dragged"]
|
|
|
|
[connection signal="dragged" from="MovementDrag" to="MovementDrag/DragSound" method="play" unbinds=1]
|
|
|
|
[connection signal="fallen" from="MovementDrag" to="." method="_on_fallen"]
|
|
|
|
[connection signal="fallen" from="MovementDrag" to="MovementDrag/FallSound" method="play"]
|
2024-04-21 22:09:04 +00:00
|
|
|
[connection signal="move" from="MovementDrag" to="." method="_on_move"]
|
|
|
|
[connection signal="dragged" from="MovementDrag/Draggable" to="MovementDrag" method="drag"]
|
|
|
|
[connection signal="dropped" from="MovementDrag/Draggable" to="MovementDrag" method="drop"]
|