-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbabyPlayer.tscn
110 lines (93 loc) · 3.89 KB
/
babyPlayer.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
[gd_scene load_steps=16 format=3 uid="uid://dvg308mbut0ul"]
[ext_resource type="Script" path="res://player.gd" id="1_adg2i"]
[ext_resource type="Texture2D" uid="uid://cxuns0vy1aw4i" path="res://graphics/Baby Crow Walking/BCrow1.png" id="2_fkm2u"]
[ext_resource type="Texture2D" uid="uid://csfpvi1oh7v57" path="res://graphics/Baby Crow Walking/BCrow2.png" id="3_l5ccq"]
[ext_resource type="Texture2D" uid="uid://brnvvbc7fu380" path="res://graphics/Baby Crow Walking/BCrow3.png" id="4_wg8f3"]
[ext_resource type="Texture2D" uid="uid://dg3o1axjyd458" path="res://graphics/Baby Crow Walking/BCrowR1.png" id="5_6l6vl"]
[ext_resource type="Texture2D" uid="uid://bta1p5tu4uexa" path="res://graphics/Baby Crow Walking/BCrowR2.png" id="6_t8i81"]
[ext_resource type="Texture2D" uid="uid://ifh8vvguey8t" path="res://graphics/Baby Crow Walking/BCrowR3.png" id="7_2osi7"]
[ext_resource type="Texture2D" uid="uid://by35fscukp1w4" path="res://graphics/Baby Crow.png" id="8_mt6as"]
[ext_resource type="Texture2D" uid="uid://e3ty44yma51p" path="res://graphics/Baby Crow R.png" id="9_q24je"]
[ext_resource type="PackedScene" uid="uid://cppr1vx0grq8r" path="res://dialogues/dialogue.tscn" id="9_r5ao5"]
[ext_resource type="PackedScene" uid="uid://c0cf6vgdrekja" path="res://pause_menu.tscn" id="10_2omes"]
[ext_resource type="PackedScene" uid="uid://cftoisbhfytx2" path="res://inventory.tscn" id="11_v8sly"]
[sub_resource type="SpriteFrames" id="SpriteFrames_vivnw"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_fkm2u")
}, {
"duration": 1.0,
"texture": ExtResource("3_l5ccq")
}, {
"duration": 1.0,
"texture": ExtResource("4_wg8f3")
}],
"loop": true,
"name": &"flying left",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("5_6l6vl")
}, {
"duration": 1.0,
"texture": ExtResource("6_t8i81")
}, {
"duration": 1.0,
"texture": ExtResource("7_2osi7")
}],
"loop": true,
"name": &"flying right",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("8_mt6as")
}],
"loop": true,
"name": &"standing l",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("9_q24je")
}],
"loop": true,
"name": &"standing r",
"speed": 5.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_rvteo"]
size = Vector2(18.1818, 14.5455)
[sub_resource type="CircleShape2D" id="CircleShape2D_1mc4c"]
radius = 12.0
[node name="babyPlayer" type="CharacterBody2D"]
collision_layer = 3
script = ExtResource("1_adg2i")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
position = Vector2(-4.76837e-07, -4.76837e-07)
scale = Vector2(0.37375, 0.37375)
sprite_frames = SubResource("SpriteFrames_vivnw")
animation = &"standing r"
autoplay = "standing l"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(1, -2.38419e-07)
scale = Vector2(1.1, 1.1)
shape = SubResource("RectangleShape2D_rvteo")
[node name="Camera2D" type="Camera2D" parent="."]
zoom = Vector2(3, 3)
[node name="player_hitbox" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="player_hitbox"]
shape = SubResource("CircleShape2D_1mc4c")
[node name="invincibility-cooldown" type="Timer" parent="."]
[node name="attack-cooldown" type="Timer" parent="."]
[node name="Dialogue" parent="." instance=ExtResource("9_r5ao5")]
unique_name_in_owner = true
[node name="PauseMenu" parent="." instance=ExtResource("10_2omes")]
[node name="Inventory" type="CanvasLayer" parent="."]
[node name="Inventory" parent="Inventory" instance=ExtResource("11_v8sly")]
position = Vector2(1081, 77)
[connection signal="body_entered" from="player_hitbox" to="." method="_on_player_hitbox_body_entered"]
[connection signal="body_exited" from="player_hitbox" to="." method="_on_player_hitbox_body_exited"]
[connection signal="timeout" from="invincibility-cooldown" to="." method="_on_invincibilitycooldown_timeout"]
[connection signal="timeout" from="attack-cooldown" to="." method="_on_attackcooldown_timeout"]