21 lines
902 B
Text
21 lines
902 B
Text
[gd_scene load_steps=5 format=3 uid="uid://yao5smo8c43u"]
|
|
|
|
[ext_resource type="Script" path="res://src/creature.gd" id="1_34bi4"]
|
|
[ext_resource type="Texture2D" uid="uid://dnvnm78idadmn" path="res://parts/creatures/images/1x1-1.png" id="2_upgji"]
|
|
[ext_resource type="PackedScene" uid="uid://dykc1mgg5uopw" path="res://components/Cursor/MouseHandler.tscn" id="3_vlaga"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_4rqgs"]
|
|
size = Vector2(12, 12)
|
|
|
|
[node name="Creature" type="Node2D"]
|
|
script = ExtResource("1_34bi4")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
texture = ExtResource("2_upgji")
|
|
|
|
[node name="MouseHandler" parent="." instance=ExtResource("3_vlaga")]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="MouseHandler"]
|
|
shape = SubResource("RectangleShape2D_4rqgs")
|
|
|
|
[connection signal="clicked" from="MouseHandler" to="." method="_on_mouse_handler_clicked"]
|