-
Notifications
You must be signed in to change notification settings - Fork 0
/
Asteroid.tscn
73 lines (63 loc) · 2.07 KB
/
Asteroid.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
[gd_scene load_steps=8 format=2]
[ext_resource path="res://Assets/asteroids/asteroid_large.png" type="Texture" id=1]
[ext_resource path="res://src/Asteroid.gd" type="Script" id=2]
[ext_resource path="res://Assets/Audio/explosion.wav" type="AudioStream" id=3]
[ext_resource path="res://Assets/Fonts/Pixeltype.ttf" type="DynamicFontData" id=4]
[ext_resource path="res://Assets/asteroids/asteroid_large_white.png" type="Texture" id=5]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 1 ) ],
"loop": true,
"name": "default",
"speed": 5.0
}, {
"frames": [ ExtResource( 5 ) ],
"loop": true,
"name": "explode",
"speed": 5.0
} ]
[sub_resource type="DynamicFont" id=2]
size = 32
font_data = ExtResource( 4 )
[node name="Asteroid" type="KinematicBody2D"]
collision_layer = 2
collision_mask = 7
script = ExtResource( 2 )
_text_path = NodePath("LabelPivot/LabelText")
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
position = Vector2( -1.49012e-08, 2.98023e-08 )
scale = Vector2( 1.83468, 1.83468 )
polygon = PoolVector2Array( -10.0156, -10.6425, 5.27727, -14.0172, 14.1606, -7.81204, 11.4619, 9.9326, -1.91937, 12.1099, -14.7384, 1.11471 )
[node name="Sprite" type="AnimatedSprite" parent="."]
scale = Vector2( 4, 4 )
frames = SubResource( 1 )
[node name="ExplosionSound" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 3 )
volume_db = -6.0
bus = "SFX"
[node name="LabelPivot" type="Control" parent="."]
anchor_right = 5.0
margin_left = 3.6818
margin_top = 0.0390549
margin_right = 43.6818
margin_bottom = 40.0391
__meta__ = {
"_edit_use_anchors_": false
}
[node name="LabelText" type="Label" parent="LabelPivot"]
anchor_left = 0.507441
anchor_top = 0.490079
anchor_right = 0.507441
anchor_bottom = 0.490079
margin_left = -37.3225
margin_top = -30.5587
margin_right = 6.67749
margin_bottom = -10.5587
custom_fonts/font = SubResource( 2 )
text = "Maj"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ExplosionTimer" type="Timer" parent="."]
wait_time = 0.1
[connection signal="timeout" from="ExplosionTimer" to="." method="_on_ExplosionTimer_timeout"]