forked from Guaaay/FishGame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
player_fish.tscn
71 lines (58 loc) · 2.11 KB
/
player_fish.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
[gd_scene load_steps=8 format=3 uid="uid://c7m73p17y4ea7"]
[ext_resource type="Script" path="res://scripts/player.gd" id="1_glpev"]
[ext_resource type="Texture2D" uid="uid://ck7d5c5houfw3" path="res://art/pececillo_anim_up.png" id="2_hyqfn"]
[ext_resource type="Texture2D" uid="uid://oalrwt1ja8ol" path="res://art/pececillo.png" id="2_qtaq1"]
[ext_resource type="Texture2D" uid="uid://b5xpmuxvh6myk" path="res://art/pececillo_anim_down.png" id="3_etla7"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_50gm8"]
size = Vector2(86, 49)
[sub_resource type="SpriteFrames" id="SpriteFrames_uooc6"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("3_etla7")
}, {
"duration": 1.0,
"texture": ExtResource("2_hyqfn")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[sub_resource type="SpriteFrames" id="SpriteFrames_l53s8"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_qtaq1")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[node name="PlayerFish" type="Area2D" groups=["PlayerFish"]]
z_index = 2270
script = ExtResource("1_glpev")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(-1, -3.5)
shape = SubResource("RectangleShape2D_50gm8")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
position = Vector2(-1, -1)
scale = Vector2(0.130394, 0.129855)
sprite_frames = SubResource("SpriteFrames_uooc6")
autoplay = "default"
frame_progress = 0.44762
[node name="SpeedTimer" type="Timer" parent="."]
[node name="BoostGenerator" type="Timer" parent="."]
wait_time = 3.0
autostart = true
[node name="Node" type="Node" parent="."]
[node name="shadow" type="AnimatedSprite2D" parent="Node"]
visible = false
modulate = Color(0.14902, 0.14902, 0.14902, 1)
z_index = -3000
scale = Vector2(0.189181, 0.187621)
sprite_frames = SubResource("SpriteFrames_l53s8")
centered = false
offset = Vector2(-301.299, -143.907)
[node name="Points" type="Node2D" parent="Node"]
[connection signal="timeout" from="SpeedTimer" to="." method="_on_timer_timeout"]
[connection signal="timeout" from="BoostGenerator" to="." method="_on_boost_generator_timeout"]