-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.tscn
64 lines (50 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
58
59
60
61
62
63
64
[gd_scene load_steps=10 format=2]
[ext_resource path="res://Main.gd" type="Script" id=1]
[ext_resource path="res://Obstacle.tscn" type="PackedScene" id=2]
[ext_resource path="res://Ground.tscn" type="PackedScene" id=3]
[ext_resource path="res://LilyWhite.tscn" type="PackedScene" id=4]
[ext_resource path="res://asset/background.png" type="Texture" id=5]
[ext_resource path="res://HUD.tscn" type="PackedScene" id=6]
[ext_resource path="res://font/Xolonium-Regular.ttf" type="DynamicFontData" id=7]
[sub_resource type="DynamicFont" id=1]
size = 48
outline_size = 2
font_data = ExtResource( 7 )
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 360, 20 )
[node name="Main" type="Node"]
script = ExtResource( 1 )
obstalce_scene = ExtResource( 2 )
ground_scene = ExtResource( 3 )
[node name="TextureRect" type="TextureRect" parent="."]
margin_right = 40.0
margin_bottom = 40.0
texture = ExtResource( 5 )
[node name="HUD" parent="." instance=ExtResource( 6 )]
[node name="LilyWhite" parent="." instance=ExtResource( 4 )]
position = Vector2( 360, 100 )
[node name="ScoreTimer" type="Timer" parent="."]
wait_time = 3.5
[node name="StartPosition" type="Position2D" parent="."]
position = Vector2( 360, 100 )
[node name="ScoreDisplay" type="CanvasLayer" parent="."]
[node name="Label" type="Label" parent="ScoreDisplay"]
anchor_left = 1.0
anchor_right = 1.0
margin_left = -79.0
margin_top = 43.0
margin_right = -39.0
margin_bottom = 101.0
custom_colors/font_color = Color( 1, 1, 1, 1 )
custom_colors/font_outline_modulate = Color( 0, 0, 0, 1 )
custom_fonts/font = SubResource( 1 )
text = "0"
[node name="topBarrier" type="Area2D" parent="."]
position = Vector2( 360, -50 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="topBarrier"]
position = Vector2( 1.36422e-12, 1.36422e-12 )
shape = SubResource( 2 )
[connection signal="child_exiting_tree" from="." to="." method="terrain_go_out_window"]
[connection signal="start_game" from="HUD" to="." method="new_game"]
[connection signal="end_game" from="LilyWhite" to="." method="_on_LilyWhite_end_game"]
[connection signal="timeout" from="ScoreTimer" to="." method="_on_ScoreTimer_timeout"]