-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.tscn
122 lines (95 loc) · 3.84 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
[gd_scene load_steps=10 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://ui_theme.tres" type="Theme" id=3]
[ext_resource path="res://ScoreLabel.gd" type="Script" id=4]
[sub_resource type="BoxShape" id=1]
extents = Vector3( 30, 1, 30 )
[sub_resource type="CubeMesh" id=2]
size = Vector3( 60, 2, 60 )
[sub_resource type="CylinderMesh" id=3]
[sub_resource type="SpatialMaterial" id=4]
albedo_color = Color( 0.768627, 0.427451, 0.027451, 1 )
[sub_resource type="Curve3D" id=5]
_data = {
"points": PoolVector3Array( 0, 0, 0, 0, 0, 0, -13.093, 0, -13.4048, 0, 0, 0, 0, 0, 0, 12.8437, 0, -13.1554, 0, 0, 0, 0, 0, 0, 12.8437, 0, 18.1432, 0, 0, 0, 0, 0, 0, -13.2177, 0, 17.7691, 0, 0, 0, 0, 0, 0, -13.093, 0, -13.4048 ),
"tilts": PoolRealArray( 0, 0, 0, 0, 0 )
}
[node name="Main" type="Node"]
script = ExtResource( 2 )
[node name="Ground" type="StaticBody" parent="."]
collision_layer = 4
collision_mask = 0
[node name="CollisionShape" type="CollisionShape" parent="Ground"]
shape = SubResource( 1 )
[node name="MeshInstance" type="MeshInstance" parent="Ground"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
mesh = SubResource( 2 )
material/0 = null
[node name="DirectionalLight" type="DirectionalLight" parent="."]
transform = Transform( 1, 0, 0, 0, 0.258819, 0.965926, 0, -0.965926, 0.258819, 0, 14, 0 )
shadow_enabled = true
[node name="Player" parent="." instance=ExtResource( 1 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.65276, 0 )
[node name="CameraPivot" type="Spatial" parent="."]
transform = Transform( 1, 0, 0, 0, 0.727749, 0.685844, 0, -0.685844, 0.727749, 0, 0, 0 )
[node name="Camera" type="Camera" parent="CameraPivot"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 19 )
projection = 1
current = true
size = 19.0
[node name="Cylinders" type="Spatial" parent="."]
[node name="MeshInstance" type="MeshInstance" parent="Cylinders"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -13.1278, 2, -13.0217 )
mesh = SubResource( 3 )
material/0 = SubResource( 4 )
[node name="MeshInstance2" type="MeshInstance" parent="Cylinders"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 12.8722, 2, -13.0217 )
mesh = SubResource( 3 )
material/0 = SubResource( 4 )
[node name="MeshInstance3" type="MeshInstance" parent="Cylinders"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -13.1278, 2, 17.9783 )
mesh = SubResource( 3 )
material/0 = SubResource( 4 )
[node name="MeshInstance4" type="MeshInstance" parent="Cylinders"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 12.8722, 2, 17.9783 )
mesh = SubResource( 3 )
material/0 = SubResource( 4 )
[node name="SpawnPath" type="Path" parent="."]
curve = SubResource( 5 )
[node name="SpawnLocation" type="PathFollow" parent="SpawnPath"]
transform = Transform( -0.816605, 0, 0.577198, 0, 1, 0, -0.577198, 0, -0.816605, -13.093, 0, -13.4048 )
rotation_mode = 1
[node name="MobTimer" type="Timer" parent="."]
wait_time = 0.7
autostart = true
[node name="UserInterface" type="Control" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
theme = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ScoreLabel" type="Label" parent="UserInterface"]
modulate = Color( 0, 0, 0, 1 )
margin_left = 23.0
margin_top = 16.0
margin_right = 135.0
margin_bottom = 47.0
text = "Scrore : 0"
script = ExtResource( 4 )
[node name="Retry" type="ColorRect" parent="UserInterface"]
visible = false
anchor_right = 1.0
anchor_bottom = 1.0
color = Color( 0, 0, 0, 0.270588 )
[node name="Label" type="Label" parent="UserInterface/Retry"]
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
margin_top = -15.5
margin_bottom = 15.5
text = "Press enter to retry"
align = 1
[connection signal="hit" from="Player" to="." method="_on_Player_hit"]
[connection signal="timeout" from="MobTimer" to="." method="_on_MobTimer_timeout"]