-
Notifications
You must be signed in to change notification settings - Fork 0
/
Player.tscn
65 lines (57 loc) · 2.08 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
[gd_scene load_steps=11 format=2]
[ext_resource path="res://assets/rocket/fly/rocket_1.png" type="Texture" id=1]
[ext_resource path="res://assets/rocket/fly/rocket_0.png" type="Texture" id=2]
[ext_resource path="res://Player.gd" type="Script" id=3]
[ext_resource path="res://assets/rocket/explosion/3.png" type="Texture" id=4]
[ext_resource path="res://assets/rocket/explosion/4.png" type="Texture" id=5]
[ext_resource path="res://assets/rocket/explosion/6.png" type="Texture" id=6]
[ext_resource path="res://assets/rocket/explosion/2.png" type="Texture" id=7]
[ext_resource path="res://assets/rocket/explosion/5.png" type="Texture" id=8]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 7 ), ExtResource( 4 ), ExtResource( 5 ), ExtResource( 8 ), ExtResource( 6 ) ],
"loop": true,
"name": "explosion",
"speed": 10.0
}, {
"frames": [ ExtResource( 2 ), ExtResource( 1 ) ],
"loop": true,
"name": "fly",
"speed": 4.0
} ]
[sub_resource type="ConvexPolygonShape2D" id=2]
points = PoolVector2Array( -40, -20, 40, -20, 60, 0, 40, 20, -40, 20 )
[node name="Player" type="Area2D"]
position = Vector2( 0, 1 )
script = ExtResource( 3 )
__meta__ = {
"_edit_group_": true
}
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
scale = Vector2( 0.25, 0.25 )
frames = SubResource( 1 )
animation = "fly"
frame = 1
playing = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 3, -2 )
scale = Vector2( 0.9, 0.9 )
shape = SubResource( 2 )
[node name="CPUParticles2D" type="CPUParticles2D" parent="."]
position = Vector2( -48, -1 )
preprocess = 1.0
explosiveness = 0.3
randomness = 0.5
local_coords = false
emission_shape = 1
emission_sphere_radius = 6.33
gravity = Vector2( -98, 0 )
initial_velocity = 1.0
initial_velocity_random = 0.5
angle = 40.0
angle_random = 0.5
scale_amount = 8.0
scale_amount_random = 0.7
color = Color( 0.647059, 0.607843, 0.607843, 1 )
[connection signal="body_entered" from="." to="." method="_on_Player_body_entered"]
[connection signal="animation_finished" from="AnimatedSprite" to="." method="_on_AnimatedSprite_animation_finished"]