-
Notifications
You must be signed in to change notification settings - Fork 0
/
Player.tscn
66 lines (57 loc) · 2.41 KB
/
Player.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
[gd_scene load_steps=17 format=2]
[ext_resource path="res://Player.gd" type="Script" id=1]
[ext_resource path="res://gfx/ship0000.png" type="Texture" id=2]
[ext_resource path="res://BulletSpawner.tscn" type="PackedScene" id=3]
[ext_resource path="res://gfx/ship0002.png" type="Texture" id=4]
[ext_resource path="res://gfx/ship0001.png" type="Texture" id=5]
[ext_resource path="res://gfx/ship0003.png" type="Texture" id=6]
[ext_resource path="res://gfx/ship_broke_1_0001.png" type="Texture" id=7]
[ext_resource path="res://gfx/ship_broke_1_0002.png" type="Texture" id=8]
[ext_resource path="res://gfx/ship_broke_1_0000.png" type="Texture" id=9]
[ext_resource path="res://gfx/ship_broke_1_0003.png" type="Texture" id=10]
[ext_resource path="res://gfx/ship_broke_2_0001.png" type="Texture" id=11]
[ext_resource path="res://gfx/ship_broke_2_0002.png" type="Texture" id=12]
[ext_resource path="res://gfx/ship_broke_2_0003.png" type="Texture" id=13]
[ext_resource path="res://gfx/ship_broke_2_0000.png" type="Texture" id=14]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 2 ), ExtResource( 5 ), ExtResource( 4 ), ExtResource( 6 ) ],
"loop": true,
"name": "idle",
"speed": 8.0
}, {
"frames": [ ExtResource( 9 ), ExtResource( 7 ), ExtResource( 8 ), ExtResource( 10 ) ],
"loop": true,
"name": "Broke1",
"speed": 5.0
}, {
"frames": [ ExtResource( 14 ), ExtResource( 11 ), ExtResource( 12 ), ExtResource( 13 ) ],
"loop": true,
"name": "Broke2",
"speed": 5.0
} ]
[sub_resource type="CapsuleShape2D" id=2]
radius = 15.0
height = 10.0
[node name="Player" type="Area2D"]
position = Vector2( 340.867, 808.245 )
collision_mask = 26
script = ExtResource( 1 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
scale = Vector2( 2, 2 )
frames = SubResource( 1 )
animation = "idle"
frame = 1
playing = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 0, -33 )
shape = SubResource( 2 )
[node name="BulletSpawner" parent="." instance=ExtResource( 3 )]
position = Vector2( -0.487671, -44.8661 )
[node name="FlickerTimer" type="Timer" parent="."]
wait_time = 0.1
[node name="ImmunityTimer" type="Timer" parent="."]
wait_time = 0.5
[connection signal="area_entered" from="." to="." method="_on_Player_area_entered"]
[connection signal="timeout" from="FlickerTimer" to="." method="_on_FlickerTimer_timeout"]
[connection signal="timeout" from="ImmunityTimer" to="." method="_on_ImmunityTimer_timeout"]