-
Notifications
You must be signed in to change notification settings - Fork 1
/
Main.tscn
40 lines (31 loc) · 1.73 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
[gd_scene load_steps=6 format=2]
[ext_resource path="res://Main.gd" type="Script" id=1]
[ext_resource path="res://HUD.tscn" type="PackedScene" id=2]
[ext_resource path="res://Background.tscn" type="PackedScene" id=3]
[ext_resource path="res://assets/third_party/shoot.wav" type="AudioStream" id=4]
[ext_resource path="res://assets/third_party/carnivalrides.ogg" type="AudioStream" id=5]
[node name="Main" type="Node2D"]
script = ExtResource( 1 )
[node name="HUD" parent="." instance=ExtResource( 2 )]
layer = 15
[node name="Background" parent="." instance=ExtResource( 3 )]
[node name="AnimalSpawnTimer" type="Timer" parent="."]
[node name="GameStartTimer" type="Timer" parent="."]
wait_time = 3.0
one_shot = true
[node name="GameTimer" type="Timer" parent="."]
wait_time = 0.1
[node name="Shoot" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 4 )
[node name="Music" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 5 )
autoplay = true
[connection signal="game_over" from="." to="HUD" method="_on_Main_game_over"]
[connection signal="game_start" from="." to="HUD" method="_on_Main_game_start"]
[connection signal="remaining_time_changed" from="." to="HUD" method="_on_Main_remaining_time_changed"]
[connection signal="remaining_to_kill_changed" from="." to="HUD" method="_on_Main_remaining_to_kill_changed"]
[connection signal="play_again" from="HUD" to="." method="_on_HUD_play_again"]
[connection signal="timeout" from="AnimalSpawnTimer" to="." method="_on_AnimalSpawnTimer_timeout"]
[connection signal="timeout" from="GameStartTimer" to="." method="_on_GameStartTimer_timeout"]
[connection signal="timeout" from="GameTimer" to="." method="_on_GameTimer_timeout"]
[connection signal="finished" from="Music" to="." method="_on_Music_finished"]