-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlayer1.tscn
82 lines (63 loc) · 2.26 KB
/
Player1.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
[gd_scene load_steps=8 format=2]
[ext_resource path="res://Player1.gd" type="Script" id=1]
[ext_resource path="res://dangerCircle2.png" type="Texture" id=2]
[ext_resource path="res://dangerCircle1.png" type="Texture" id=3]
[sub_resource type="CapsuleShape2D" id=1]
[sub_resource type="CircleShape2D" id=2]
radius = 77.4919
[sub_resource type="CapsuleShape2D" id=3]
radius = 17.0
[sub_resource type="SpriteFrames" id=4]
animations = [ {
"frames": [ ExtResource( 3 ), ExtResource( 2 ) ],
"loop": true,
"name": "slowBeeps",
"speed": 5.0
}, {
"frames": [ ExtResource( 3 ), ExtResource( 2 ) ],
"loop": true,
"name": "fasterBeeps",
"speed": 10.0
} ]
[node name="Player1" type="KinematicBody2D"]
position = Vector2( -10, -20 )
collision_mask = 5
script = ExtResource( 1 )
[node name="ColorRect" type="ColorRect" parent="."]
margin_right = 20.0
margin_bottom = 40.0
color = Color( 0.290196, 1, 0, 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 10, 20 )
shape = SubResource( 1 )
[node name="iframesTimer" type="Timer" parent="."]
wait_time = 0.3
one_shot = true
[node name="succTimer" type="Timer" parent="."]
wait_time = 0.408
[node name="SuccArea" type="Area2D" parent="."]
[node name="SuccShape" type="CollisionShape2D" parent="SuccArea"]
position = Vector2( 10, 20 )
shape = SubResource( 2 )
[node name="PickUpArea" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="PickUpArea"]
position = Vector2( 10, 20 )
shape = SubResource( 3 )
[node name="ShotDelay" type="Timer" parent="."]
wait_time = 0.15
one_shot = true
[node name="respawnTimer" type="Timer" parent="."]
wait_time = 5.0
one_shot = true
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
visible = false
position = Vector2( 10, 20 )
scale = Vector2( 0.252977, 0.252977 )
frames = SubResource( 4 )
animation = "fasterBeeps"
[node name="VisibilityNotifier2D" type="VisibilityNotifier2D" parent="."]
position = Vector2( 10, 20 )
scale = Vector2( 1, 2 )
[connection signal="timeout" from="iframesTimer" to="." method="_on_iframesTimer_timeout"]
[connection signal="timeout" from="respawnTimer" to="." method="_on_respawnTimer_timeout"]
[connection signal="screen_exited" from="VisibilityNotifier2D" to="." method="_on_VisibilityNotifier2D_screen_exited"]