Significant changes include: - Disabled input pickability for DeathBox in Dog entity - Simplified mouse click detection logic in Snail script - Removed unnecessary conditions and actions from snail eating state - Adjusted cursor hotspot position for hand cursor in Cursor Manager - Reset flower nectar level upon game reset
172 lines
5 KiB
Text
172 lines
5 KiB
Text
[gd_scene load_steps=11 format=3 uid="uid://cfhoi2rqxa3up"]
|
|
|
|
[ext_resource type="Script" path="res://scenes/scripts/dog.gd" id="1_26pvc"]
|
|
[ext_resource type="Texture2D" uid="uid://cqs2lfakkpqib" path="res://resources/textures/dog_body.png" id="2_mewoo"]
|
|
[ext_resource type="Texture2D" uid="uid://b22isfr66b8y2" path="res://resources/textures/dog_head.png" id="3_d7db6"]
|
|
[ext_resource type="Texture2D" uid="uid://bwxbit5i2x2ti" path="res://resources/textures/dog_tail.png" id="4_odrmk"]
|
|
[ext_resource type="Texture2D" uid="uid://dhf4dessaw5p5" path="res://resources/particles/twirl_01.png" id="5_dwvih"]
|
|
|
|
[sub_resource type="Animation" id="Animation_y6mxj"]
|
|
resource_name = "Idle"
|
|
loop_mode = 1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("DogSprite/DogTail:rotation")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.5, 1),
|
|
"transitions": PackedFloat32Array(-2, -2, -2),
|
|
"update": 0,
|
|
"values": [-0.10472, 0.10472, -0.10472]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("DogSprite/DogHead:rotation")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0, 0.4, 1),
|
|
"transitions": PackedFloat32Array(-2, -2, -2),
|
|
"update": 0,
|
|
"values": [0.0349066, -0.0349066, 0.0349066]
|
|
}
|
|
tracks/2/type = "value"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/path = NodePath("DogSprite/DogBody:scale")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
"times": PackedFloat32Array(0, 0.6, 1),
|
|
"transitions": PackedFloat32Array(-2, -2, -2),
|
|
"update": 0,
|
|
"values": [Vector2(1, 1), Vector2(1.04, 1), Vector2(1, 1)]
|
|
}
|
|
tracks/3/type = "value"
|
|
tracks/3/imported = false
|
|
tracks/3/enabled = true
|
|
tracks/3/path = NodePath("DogShadow/DogBody:scale")
|
|
tracks/3/interp = 1
|
|
tracks/3/loop_wrap = true
|
|
tracks/3/keys = {
|
|
"times": PackedFloat32Array(0, 0.6, 1),
|
|
"transitions": PackedFloat32Array(-2, -2, -2),
|
|
"update": 0,
|
|
"values": [Vector2(1, 1), Vector2(1.04, 1), Vector2(1, 1)]
|
|
}
|
|
tracks/4/type = "value"
|
|
tracks/4/imported = false
|
|
tracks/4/enabled = true
|
|
tracks/4/path = NodePath("DogShadow/DogTail:rotation")
|
|
tracks/4/interp = 1
|
|
tracks/4/loop_wrap = true
|
|
tracks/4/keys = {
|
|
"times": PackedFloat32Array(0, 0.5, 1),
|
|
"transitions": PackedFloat32Array(-2, -2, -2),
|
|
"update": 0,
|
|
"values": [-0.10472, 0.10472, -0.10472]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_2ki86"]
|
|
_data = {
|
|
"Idle": SubResource("Animation_y6mxj")
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_ajt0l"]
|
|
resource_name = "Highlight"
|
|
length = 5.0
|
|
loop_mode = 1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("AreaHighlight:rotation")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 5),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [6.28319, 0.0]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_t7soo"]
|
|
_data = {
|
|
"Highlight": SubResource("Animation_ajt0l")
|
|
}
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_eyufl"]
|
|
radius = 191.83
|
|
|
|
[node name="Dog" type="Node2D" groups=["dog"]]
|
|
position = Vector2(-5, -1)
|
|
script = ExtResource("1_26pvc")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_2ki86")
|
|
}
|
|
autoplay = "Idle"
|
|
|
|
[node name="DogHighlightAnimation" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_t7soo")
|
|
}
|
|
autoplay = "Highlight"
|
|
|
|
[node name="DeathBox" type="Area2D" parent="."]
|
|
input_pickable = false
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="DeathBox"]
|
|
shape = SubResource("CircleShape2D_eyufl")
|
|
|
|
[node name="DogShadow" type="Node2D" parent="."]
|
|
modulate = Color(0, 0, 0, 0.0392157)
|
|
position = Vector2(10, 10)
|
|
rotation = 1.5708
|
|
scale = Vector2(0.4, 0.4)
|
|
|
|
[node name="DogBody" type="Sprite2D" parent="DogShadow"]
|
|
scale = Vector2(1.03986, 1)
|
|
texture = ExtResource("2_mewoo")
|
|
|
|
[node name="DogHead" type="Sprite2D" parent="DogShadow"]
|
|
position = Vector2(12.5, -165)
|
|
rotation = 0.0349066
|
|
texture = ExtResource("3_d7db6")
|
|
offset = Vector2(-2.5, -75)
|
|
|
|
[node name="DogTail" type="Sprite2D" parent="DogShadow"]
|
|
position = Vector2(2.50001, 205)
|
|
rotation = 0.0818845
|
|
texture = ExtResource("4_odrmk")
|
|
offset = Vector2(2.5, 67.5)
|
|
|
|
[node name="DogSprite" type="Node2D" parent="."]
|
|
rotation = 1.5708
|
|
scale = Vector2(0.4, 0.4)
|
|
|
|
[node name="DogBody" type="Sprite2D" parent="DogSprite"]
|
|
scale = Vector2(1.03986, 1)
|
|
texture = ExtResource("2_mewoo")
|
|
|
|
[node name="DogHead" type="Sprite2D" parent="DogSprite"]
|
|
position = Vector2(12.5, -165)
|
|
rotation = -0.0166864
|
|
texture = ExtResource("3_d7db6")
|
|
offset = Vector2(-2.5, -75)
|
|
|
|
[node name="DogTail" type="Sprite2D" parent="DogSprite"]
|
|
position = Vector2(5, 182.5)
|
|
rotation = 0.0818845
|
|
texture = ExtResource("4_odrmk")
|
|
offset = Vector2(2.5, 67.5)
|
|
|
|
[node name="AreaHighlight" type="Sprite2D" parent="."]
|
|
visible = false
|
|
modulate = Color(1, 0.0980392, 0.160784, 0.345098)
|
|
rotation = 0.633674
|
|
scale = Vector2(0.8, 0.8)
|
|
texture = ExtResource("5_dwvih")
|