-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMain.tscn
68 lines (52 loc) · 2.38 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
[gd_scene load_steps=10 format=2]
[ext_resource path="res://Main.cs" type="Script" id=1]
[ext_resource path="res://Mob.tscn" type="PackedScene" id=2]
[ext_resource path="res://Player.tscn" type="PackedScene" id=3]
[ext_resource path="res://HUD.tscn" type="PackedScene" id=4]
[ext_resource path="res://dodge_assets/art/underwater_vector_background.jpg" type="Texture" id=5]
[ext_resource path="res://dodge_assets/art/gameover.wav" type="AudioStream" id=6]
[ext_resource path="res://dodge_assets/art/House In a Forest Loop.ogg" type="AudioStream" id=7]
[sub_resource type="ImageTexture" id=1]
[sub_resource type="Curve2D" id=2]
_data = {
"points": PoolVector2Array( 0, 0, 0, 0, -1.45398, -1.66498, 0, 0, 0, 0, 482.721, -0.605469, 0, 0, 0, 0, 476.364, 718.77, 0, 0, 0, 0, -0.394531, 716.651, 0, 0, 0, 0, -1.45398, -1.66498 )
}
[node name="Main" type="Node"]
script = ExtResource( 1 )
Mob = ExtResource( 2 )
[node name="TextureRect" type="TextureRect" parent="."]
margin_right = 40.0
margin_bottom = 40.0
texture = SubResource( 1 )
expand = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="underwater_vector_background" type="Sprite" parent="TextureRect"]
position = Vector2( 238.681, 359.364 )
scale = Vector2( 0.795231, 1.9187 )
texture = ExtResource( 5 )
[node name="Player" parent="." instance=ExtResource( 3 )]
[node name="MobTimer" type="Timer" parent="."]
wait_time = 0.5
[node name="ScoreTimer" type="Timer" parent="."]
[node name="StartTimer" type="Timer" parent="."]
wait_time = 2.0
one_shot = true
[node name="PlayerStartPosition" type="Position2D" parent="."]
position = Vector2( 240, 450 )
[node name="MobPath" type="Path2D" parent="."]
curve = SubResource( 2 )
[node name="MobSpawnLocation" type="PathFollow2D" parent="MobPath"]
position = Vector2( -1.45398, -1.66498 )
rotation = 0.00218827
[node name="HUD" parent="." instance=ExtResource( 4 )]
[node name="BgMusic" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 7 )
[node name="DeathSound" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 6 )
[connection signal="Hit" from="Player" to="." method="GameOver"]
[connection signal="timeout" from="MobTimer" to="." method="OnMobTimerTimeout"]
[connection signal="timeout" from="ScoreTimer" to="." method="OnScoreTimerTimeout"]
[connection signal="timeout" from="StartTimer" to="." method="OnStartTimerTimeout"]
[connection signal="StartGame" from="HUD" to="." method="NewGame"]