forked from Struckdown/GDQ2021
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainLevel.tscn
194 lines (156 loc) · 6.42 KB
/
MainLevel.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
182
183
184
185
186
187
188
189
190
191
192
193
194
[gd_scene load_steps=17 format=2]
[ext_resource path="res://Dodo/Dodo.tscn" type="PackedScene" id=1]
[ext_resource path="res://health.tscn" type="PackedScene" id=2]
[ext_resource path="res://Environment/Terrain.tscn" type="PackedScene" id=3]
[ext_resource path="res://Mechs/BossHp.tscn" type="PackedScene" id=4]
[ext_resource path="res://Projectiles/RainingBombsManager.tscn" type="PackedScene" id=5]
[ext_resource path="res://MainLevel.gd" type="Script" id=6]
[ext_resource path="res://UI/StaminaBar.tscn" type="PackedScene" id=7]
[ext_resource path="res://WorkingPauseMenu.tscn" type="PackedScene" id=8]
[ext_resource path="res://Mechs/KillerDutchMech.tscn" type="PackedScene" id=9]
[ext_resource path="res://Timer.tscn" type="PackedScene" id=10]
[ext_resource path="res://UI/GameOver.tscn" type="PackedScene" id=11]
[ext_resource path="res://art/spr_sky.png" type="Texture" id=12]
[ext_resource path="res://art/spr_mountains.png" type="Texture" id=13]
[ext_resource path="res://Scripts/DroneSpawn.gd" type="Script" id=15]
[sub_resource type="ParticlesMaterial" id=1]
emission_shape = 2
emission_box_extents = Vector3( 900, 200, 1 )
flag_disable_z = true
direction = Vector3( 0.1, 1, 0 )
spread = 15.0
gravity = Vector3( 0, 0, 0 )
initial_velocity = 300.0
orbit_velocity = 0.0
orbit_velocity_random = 0.0
scale = 2.0
scale_random = 1.0
[sub_resource type="NavigationPolygon" id=2]
vertices = PoolVector2Array( -1803.52, -810.13, 1942.75, -940.297, 1780.84, 494.714, -1787.64, 339.148 )
polygons = [ PoolIntArray( 0, 1, 2, 3 ) ]
outlines = [ PoolVector2Array( -1803.52, -810.13, 1942.75, -940.297, 1780.84, 494.714, -1787.64, 339.148 ) ]
[node name="MainLevel" type="Node2D" groups=["Level"]]
script = ExtResource( 6 )
[node name="Terrain" parent="." instance=ExtResource( 3 )]
[node name="DroneSpawn" type="Node2D" parent="."]
script = ExtResource( 15 )
[node name="Spawn Drone" type="Timer" parent="DroneSpawn"]
wait_time = 12.0
autostart = true
[node name="positions" type="Node2D" parent="DroneSpawn"]
[node name="Position2D" type="Position2D" parent="DroneSpawn/positions"]
position = Vector2( -2023.67, 868.365 )
[node name="Position2D2" type="Position2D" parent="DroneSpawn/positions"]
position = Vector2( -2503.13, -228.396 )
[node name="Position2D3" type="Position2D" parent="DroneSpawn/positions"]
position = Vector2( 409.584, 940.283 )
[node name="Position2D4" type="Position2D" parent="DroneSpawn/positions"]
position = Vector2( 2321.42, 712.54 )
[node name="Position2D5" type="Position2D" parent="DroneSpawn/positions"]
position = Vector2( 2375.36, -198.43 )
[node name="Position2D6" type="Position2D" parent="DroneSpawn/positions"]
position = Vector2( -45.9021, -1558.89 )
[node name="Position2D7" type="Position2D" parent="DroneSpawn/positions"]
position = Vector2( 307.698, 83.2515 )
[node name="Dodo" parent="." instance=ExtResource( 1 )]
position = Vector2( -2059.1, 11.3137 )
scale = Vector2( 2, 2 )
dashTimeCap = 0.28
dashSpeed = 1000.0
healthRef = NodePath("../Other/Health")
staminaRef = NodePath("../Other/StaminaBar")
stamina = 150.0
staminaMax = 150.0
staminaRechargeRate = 30.0
[node name="Camera2D" type="Camera2D" parent="Dodo" groups=["Camera"]]
current = true
zoom = Vector2( 1.5, 1.5 )
smoothing_enabled = true
[node name="Particles2D" type="Particles2D" parent="Dodo/Camera2D"]
position = Vector2( -33.6646, -477.111 )
z_index = 1
amount = 120
lifetime = 7.0
preprocess = 2.0
visibility_rect = Rect2( -2000, -2000, 4000, 4000 )
local_coords = false
process_material = SubResource( 1 )
[node name="Boss" type="CanvasLayer" parent="."]
layer = 0
[node name="BossHp" parent="Boss" instance=ExtResource( 4 )]
mouse_filter = 2
[node name="Other" type="CanvasLayer" parent="."]
[node name="Pause" parent="Other" instance=ExtResource( 8 )]
[node name="Timer" parent="Other" instance=ExtResource( 10 )]
mouse_filter = 2
[node name="Health" parent="Other" instance=ExtResource( 2 )]
margin_left = 0.0
margin_top = -600.0
margin_right = 152.0
margin_bottom = -570.0
mouse_filter = 2
[node name="StaminaBar" parent="Other" instance=ExtResource( 7 )]
margin_left = 9.01019
margin_top = 102.0
margin_right = -790.99
margin_bottom = -482.0
mouse_filter = 2
value = 100.0
[node name="GameOver" parent="Other" instance=ExtResource( 11 )]
margin_right = 1024.0
mouse_filter = 2
[node name="ParallaxBackground" type="ParallaxBackground" parent="Other"]
scroll_ignore_camera_zoom = true
[node name="ParallaxLayerSky" type="ParallaxLayer" parent="Other/ParallaxBackground"]
motion_scale = Vector2( 0.1, 0 )
[node name="Sky" type="TextureRect" parent="Other/ParallaxBackground/ParallaxLayerSky"]
margin_left = -1019.0
margin_top = -603.0
margin_right = 940.0
margin_bottom = 567.0
texture = ExtResource( 12 )
expand = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ParallaxLayer" type="ParallaxLayer" parent="Other/ParallaxBackground"]
motion_scale = Vector2( 0.15, 0.15 )
[node name="Mountains" type="TextureRect" parent="Other/ParallaxBackground/ParallaxLayer"]
modulate = Color( 0.580392, 0.580392, 0.580392, 1 )
margin_left = -1262.88
margin_top = -31.932
margin_right = 3086.12
margin_bottom = 168.068
texture = ExtResource( 13 )
stretch_mode = 2
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ParallaxLayer2" type="ParallaxLayer" parent="Other/ParallaxBackground"]
motion_scale = Vector2( 0.25, 0.25 )
[node name="Mountains" type="TextureRect" parent="Other/ParallaxBackground/ParallaxLayer2"]
margin_left = -1366.71
margin_top = 25.2789
margin_right = 2982.29
margin_bottom = 225.279
rect_scale = Vector2( 2, 2 )
texture = ExtResource( 13 )
stretch_mode = 2
__meta__ = {
"_edit_use_anchors_": false
}
[node name="KillerDutchMech" parent="." instance=ExtResource( 9 )]
position = Vector2( 1132.71, -366.651 )
z_index = -1
bossHPRef = NodePath("../Boss/BossHp")
navigation2D = NodePath("../Navigation2D")
bombsManager = NodePath("../RainingBombsManager")
[node name="RainingBombsManager" parent="." instance=ExtResource( 5 )]
[node name="Navigation2D" type="Navigation2D" parent="."]
[node name="NavigationPolygonInstance" type="NavigationPolygonInstance" parent="Navigation2D"]
position = Vector2( 2.11896, 0 )
navpoly = SubResource( 2 )
[connection signal="timeout" from="DroneSpawn/Spawn Drone" to="DroneSpawn" method="_on_Spawn_Drone_timeout"]
[connection signal="died" from="Dodo" to="." method="_on_Dodo_died"]
[connection signal="gameOver" from="Other/GameOver" to="." method="_on_GameOver_gameOver"]
[connection signal="died" from="KillerDutchMech" to="." method="_on_KillerDutchMech_died"]