-
Notifications
You must be signed in to change notification settings - Fork 1
/
Main.tscn
96 lines (75 loc) · 3.55 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
[gd_scene load_steps=14 format=2]
[ext_resource path="res://Player.tscn" type="PackedScene" id=1]
[ext_resource path="res://Main.gd" type="Script" id=2]
[ext_resource path="res://Mob.tscn" type="PackedScene" id=3]
[ext_resource path="res://HUD.tscn" type="PackedScene" id=4]
[ext_resource path="res://moonshot-assets/music/gameover-sound/gameover.wav" type="AudioStream" id=5]
[ext_resource path="res://moonshot-assets/music/background-music/GameMusic_ForestTheme_24.ogg" type="AudioStream" id=6]
[ext_resource path="res://Moon.tscn" type="PackedScene" id=7]
[ext_resource path="res://GameBackground.tscn" type="PackedScene" id=8]
[ext_resource path="res://moonshot-assets/music/sheep-sounds/sheepHit.wav" type="AudioStream" id=9]
[ext_resource path="res://moonshot-assets/music/win-sound/Komiku_-_11_-_Trop_la_win.wav" type="AudioStream" id=10]
[ext_resource path="res://moonshot-assets/music/sheep-sounds/sheepBleet-1.wav" type="AudioStream" id=11]
[ext_resource path="res://moonshot-assets/music/grass-sounds/sfx_step_grass_r.ogg" type="AudioStream" id=12]
[sub_resource type="Curve2D" id=1]
_data = {
"points": PoolVector2Array( 0, 0, 0, 0, 1030.13, 194.557, 0, 0, 0, 0, 555.638, 608.401 )
}
[node name="Main" type="Node"]
script = ExtResource( 2 )
Mob = ExtResource( 3 )
[node name="ColorRect" type="ColorRect" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
margin_top = -6.10352e-05
margin_bottom = -6.10352e-05
color = Color( 0.0117647, 0.0117647, 0.0117647, 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="GameBackground" parent="." instance=ExtResource( 8 )]
margin_left = -2.1189
margin_top = 4.36752
margin_right = -2.1189
margin_bottom = 4.36755
[node name="Player" parent="." instance=ExtResource( 1 )]
position = Vector2( 30.522, 32.8065 )
[node name="MobTimer" type="Timer" parent="."]
wait_time = 0.5
[node name="ScoreTimer" type="Timer" parent="."]
[node name="StartTimer" type="Timer" parent="."]
wait_time = 0.5
one_shot = true
[node name="PlayerStartTimer" type="Timer" parent="."]
wait_time = 2.0
one_shot = true
[node name="StartPosition" type="Position2D" parent="."]
position = Vector2( 29.0237, 39.2946 )
[node name="HUD" parent="." instance=ExtResource( 4 )]
[node name="Music" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 6 )
[node name="GameoverSound" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 5 )
[node name="SheepHitSound" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 9 )
[node name="WinSound" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 10 )
[node name="SheepWinSound" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 11 )
[node name="StepGrassSound" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 12 )
volume_db = -10.0
[node name="Moon" parent="." instance=ExtResource( 7 )]
position = Vector2( 9.5896, 9.1575 )
[node name="MobPath" type="Path2D" parent="."]
curve = SubResource( 1 )
[node name="MobSpawnLocation" type="PathFollow2D" parent="MobPath"]
position = Vector2( 1030.13, 194.557 )
rotation = 2.42436
[connection signal="hit" from="Player" to="." method="game_over"]
[connection signal="moon_land" from="Player" to="." method="next_stage"]
[connection signal="timeout" from="MobTimer" to="." method="_on_MobTimer_timeout"]
[connection signal="timeout" from="ScoreTimer" to="." method="_on_ScoreTimer_timeout"]
[connection signal="timeout" from="StartTimer" to="." method="_on_StartTimer_timeout"]
[connection signal="timeout" from="PlayerStartTimer" to="." method="_on_PlayerStartTimer_timeout"]
[connection signal="start_game" from="HUD" to="." method="new_game"]