-
Notifications
You must be signed in to change notification settings - Fork 1
/
Main.tscn
181 lines (152 loc) · 4.42 KB
/
Main.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
[gd_scene load_steps=12 format=2]
[ext_resource path="res://art/game_background.png" type="Texture" id=1]
[ext_resource path="res://font.tres" type="DynamicFont" id=2]
[ext_resource path="res://Scenes/Player/Player.tscn" type="PackedScene" id=3]
[ext_resource path="res://art/fanatiguy.png" type="Texture" id=4]
[ext_resource path="res://art/dartSS.png" type="Texture" id=5]
[ext_resource path="res://Source/Bullets.cs" type="Script" id=6]
[ext_resource path="res://Scenes/Dart/Dart.tscn" type="PackedScene" id=7]
[sub_resource type="SegmentShape2D" id=1]
a = Vector2( -174.696, -211.546 )
b = Vector2( -174.026, 152.67 )
[sub_resource type="SegmentShape2D" id=2]
a = Vector2( -311.43, -225.9 )
b = Vector2( 612.986, -225.404 )
[sub_resource type="SegmentShape2D" id=3]
a = Vector2( 612.759, 140.203 )
b = Vector2( 612.576, -225.72 )
[sub_resource type="SegmentShape2D" id=4]
a = Vector2( 612.853, 139.289 )
b = Vector2( -311.029, 139.071 )
[node name="Root" type="Node"]
[node name="UI" type="Node2D" parent="."]
z_index = 10
__meta__ = {
"_edit_lock_": true
}
[node name="Score" type="Label" parent="UI"]
margin_left = 22.0
margin_top = 4.0
margin_right = 118.0
margin_bottom = 39.0
custom_fonts/font = ExtResource( 2 )
custom_colors/font_color = Color( 1, 1, 1, 1 )
text = "000000
"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Time" type="Label" parent="UI"]
margin_left = 1.0
margin_top = 5.0
margin_right = 959.0
margin_bottom = 19.0
custom_fonts/font = ExtResource( 2 )
text = "00:00"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Darts" type="Node2D" parent="UI"]
[node name="Sprite" type="Sprite" parent="UI/Darts"]
position = Vector2( 823, 11 )
rotation = 3.14159
scale = Vector2( 1.2, 1.2 )
texture = ExtResource( 5 )
[node name="DartsCount" type="Label" parent="UI/Darts"]
margin_left = 843.421
margin_top = 4.34685
margin_right = 939.421
margin_bottom = 39.3468
custom_fonts/font = ExtResource( 2 )
text = "3 of 3
"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="PowerUps" type="Node2D" parent="UI"]
[node name="Sprite" type="Sprite" parent="UI/PowerUps"]
position = Vector2( 200, 12 )
scale = Vector2( 0.35, 0.35 )
texture = ExtResource( 4 )
region_enabled = true
region_rect = Rect2( 0, 0, 52, 60 )
[node name="PowerUpCount" type="Label" parent="UI/PowerUps"]
margin_left = 212.791
margin_top = 4.0
margin_right = 260.791
margin_bottom = 19.7215
custom_fonts/font = ExtResource( 2 )
text = "X 0"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Background" type="Node2D" parent="."]
z_index = 1
__meta__ = {
"_edit_group_": true,
"_edit_lock_": true
}
[node name="ColorRect" type="ColorRect" parent="Background"]
margin_left = 1.43188
margin_right = 961.432
margin_bottom = 490.0
color = Color( 0, 0, 0, 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Sprite" type="Sprite" parent="Background"]
position = Vector2( 0, 22 )
texture = ExtResource( 1 )
centered = false
[node name="Player" parent="." instance=ExtResource( 3 )]
position = Vector2( 475.176, 244.659 )
scale = Vector2( 1, 1 )
z_index = 1
[node name="Bullets" type="Node2D" parent="."]
scale = Vector2( 0.996943, 1 )
z_index = 1
script = ExtResource( 6 )
DartScene = ExtResource( 7 )
[node name="DartWalls" type="Node2D" parent="."]
[node name="Left" type="StaticBody2D" parent="DartWalls"]
collision_layer = 8
collision_mask = 2
__meta__ = {
"_edit_lock_": true
}
[node name="CollisionShape2D" type="CollisionShape2D" parent="DartWalls/Left"]
position = Vector2( 192.415, 250.557 )
z_index = 2
shape = SubResource( 1 )
[node name="Top" type="StaticBody2D" parent="DartWalls"]
collision_layer = 8
collision_mask = 2
__meta__ = {
"_edit_lock_": true
}
[node name="CollisionShape2D" type="CollisionShape2D" parent="DartWalls/Top"]
position = Vector2( 329.116, 265.047 )
z_index = 2
shape = SubResource( 2 )
[node name="Right" type="StaticBody2D" parent="DartWalls"]
collision_layer = 8
collision_mask = 2
__meta__ = {
"_edit_lock_": true
}
[node name="CollisionShape2D" type="CollisionShape2D" parent="DartWalls/Right"]
position = Vector2( 329.116, 265.047 )
z_index = 2
shape = SubResource( 3 )
[node name="Bottom" type="StaticBody2D" parent="DartWalls"]
collision_layer = 8
collision_mask = 2
__meta__ = {
"_edit_lock_": true
}
[node name="CollisionShape2D" type="CollisionShape2D" parent="DartWalls/Bottom"]
position = Vector2( 329.116, 265.047 )
z_index = 2
shape = SubResource( 4 )
[connection signal="Shoot" from="Player" to="Bullets" method="_on_Player_Shoot"]