59 lines
2.2 KiB
Text
59 lines
2.2 KiB
Text
[gd_scene load_steps=7 format=3 uid="uid://baa8gpicw2yg0"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://fdqnc2qrrvn1" path="res://assets/sprites/icon.svg" id="1_ixu8j"]
|
|
[ext_resource type="Script" uid="uid://bjiap06gs02j" path="res://scenes/dragons/dragon_sprite.gd" id="1_oaoux"]
|
|
[ext_resource type="Texture2D" uid="uid://s1gx0l4qciqn" path="res://assets/sprites/hat.png" id="2_hdh4v"]
|
|
[ext_resource type="Texture2D" uid="uid://dc2uk6tqtwl4n" path="res://assets/sprites/shirt.png" id="3_oaoux"]
|
|
[ext_resource type="Texture2D" uid="uid://8srlwinjr3tt" path="res://assets/sprites/shoes.png" id="4_yf7bj"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_oaoux"]
|
|
size = Vector2(128, 129)
|
|
|
|
[node name="Dragon" type="Node2D" node_paths=PackedStringArray("hat", "shirt", "shoes", "name_label")]
|
|
script = ExtResource("1_oaoux")
|
|
hat = NodePath("Sprite/Hat")
|
|
shirt = NodePath("Sprite/Shirt")
|
|
shoes = NodePath("Sprite/Shoes")
|
|
name_label = NodePath("Label")
|
|
|
|
[node name="Area2D" type="Area2D" parent="."]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
|
position = Vector2(64, 64.5)
|
|
shape = SubResource("RectangleShape2D_oaoux")
|
|
|
|
[node name="Sprite" type="Sprite2D" parent="."]
|
|
position = Vector2(0, 1)
|
|
texture = ExtResource("1_ixu8j")
|
|
offset = Vector2(64, 64)
|
|
|
|
[node name="Hat" type="Sprite2D" parent="Sprite"]
|
|
position = Vector2(39, 22)
|
|
scale = Vector2(0.503906, 0.503906)
|
|
texture = ExtResource("2_hdh4v")
|
|
offset = Vector2(64, 64)
|
|
|
|
[node name="Shirt" type="Sprite2D" parent="Sprite"]
|
|
position = Vector2(40, 56)
|
|
scale = Vector2(0.477783, 0.288361)
|
|
texture = ExtResource("3_oaoux")
|
|
offset = Vector2(64, 64)
|
|
|
|
[node name="Shoes" type="Sprite2D" parent="Sprite"]
|
|
position = Vector2(48, 39)
|
|
scale = Vector2(0.353516, 0.353516)
|
|
texture = ExtResource("4_yf7bj")
|
|
offset = Vector2(64, 64)
|
|
|
|
[node name="Label" type="Label" parent="."]
|
|
offset_top = 105.0
|
|
offset_right = 128.0
|
|
offset_bottom = 128.0
|
|
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
|
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
|
theme_override_constants/outline_size = 5
|
|
text = "AAAAAAAA"
|
|
horizontal_alignment = 1
|
|
|
|
[connection signal="mouse_entered" from="Area2D" to="." method="_on_area_2d_mouse_entered"]
|
|
[connection signal="mouse_exited" from="Area2D" to="." method="_on_area_2d_mouse_exited"]
|