-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.tscn
57 lines (43 loc) · 2.12 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
[gd_scene load_steps=9 format=2]
[ext_resource path="res://Main.gd" type="Script" id=1]
[ext_resource path="res://collectables/Coin.tscn" type="PackedScene" id=2]
[ext_resource path="res://player/Player.tscn" type="PackedScene" id=3]
[ext_resource path="res://StartPosition.gd" type="Script" id=4]
[ext_resource path="res://hud/HUD.tscn" type="PackedScene" id=5]
[ext_resource path="res://assets/art/House In a Forest Loop.ogg" type="AudioStream" id=6]
[ext_resource path="res://assets/art/gameover.wav" type="AudioStream" id=7]
[sub_resource type="Curve2D" id=1]
_data = {
"points": PoolVector2Array( 0, 0, 0, 0, 0.0256348, 2.46704, 0, 0, 0, 0, 480.138, 1.80022, 0, 0, 0, 0, 481.471, 723.969, 0, 0, 0, 0, 1.35928, 724.636, 0, 0, 0, 0, 0.0256348, 2.46704 )
}
[node name="Main" type="Node2D"]
script = ExtResource( 1 )
Coin = ExtResource( 2 )
[node name="ColorRect" type="ColorRect" parent="."]
margin_right = 480.0
margin_bottom = 722.0
color = Color( 0.901961, 0.72549, 0.631373, 1 )
[node name="Player" parent="." instance=ExtResource( 3 )]
[node name="CoinTimer" type="Timer" parent="."]
wait_time = 0.5
[node name="LevelTimer" type="Timer" parent="."]
[node name="StartTimer" type="Timer" parent="."]
wait_time = 2.0
one_shot = true
[node name="StartPosition" type="Position2D" parent="."]
script = ExtResource( 4 )
[node name="CoinPath" type="Path2D" parent="."]
curve = SubResource( 1 )
[node name="CoinSpawnLocation" type="PathFollow2D" parent="CoinPath"]
position = Vector2( 0.0256348, 2.46704 )
rotation = -0.00138887
[node name="HUD" parent="." instance=ExtResource( 5 )]
[node name="Music" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 6 )
[node name="DeathSound" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 7 )
[connection signal="hit" from="Player" to="." method="_on_Player_hit"]
[connection signal="timeout" from="CoinTimer" to="." method="_on_CoinTimer_timeout"]
[connection signal="timeout" from="LevelTimer" to="." method="_on_LevelTimer_timeout"]
[connection signal="timeout" from="StartTimer" to="." method="_on_StartTimer_timeout"]
[connection signal="start_game" from="HUD" to="." method="newGame"]