-
Notifications
You must be signed in to change notification settings - Fork 1
/
Main.tscn
129 lines (100 loc) · 4.01 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
123
124
125
126
127
128
129
[gd_scene load_steps=13 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://fonts/Montserrat-Medium.ttf" type="DynamicFontData" id=4]
[ext_resource path="res://ScoreLabel.gd" type="Script" id=5]
[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( 1, 0.423529, 0, 1 )
[sub_resource type="Curve3D" id=5]
_data = {
"points": PoolVector3Array( 0, 0, 0, 0, 0, 0, -13.0506, 0, -15.3728, 0, 0, 0, 0, 0, 0, 13.3444, 0, -15.4699, 0, 0, 0, 0, 0, 0, 13.2474, 0, 15.0009, 0, 0, 0, 0, 0, 0, -13.0506, 0, 14.9038, 0, 0, 0, 0, 0, 0, -13.0506, 0, -15.3728 ),
"tilts": PoolRealArray( 0, 0, 0, 0, 0 )
}
[sub_resource type="DynamicFont" id=6]
size = 22
font_data = ExtResource( 4 )
[sub_resource type="Theme" id=7]
default_font = SubResource( 6 )
[node name="Main" type="Node"]
script = ExtResource( 2 )
mob_scene = ExtResource( 3 )
[node name="Ground" type="StaticBody" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0 )
collision_layer = 4
collision_mask = 0
__meta__ = {
"_edit_group_": true
}
[node name="CollisionShape" type="CollisionShape" parent="Ground"]
shape = SubResource( 1 )
[node name="MeshInstance" type="MeshInstance" parent="Ground"]
mesh = SubResource( 2 )
material/0 = null
[node name="DirectionalLight" type="DirectionalLight" parent="."]
transform = Transform( 1, 0, 0, 0, 0.495929, 0.868363, 0, -0.868363, 0.495929, 0, 24.5514, 0 )
shadow_enabled = true
[node name="Player" parent="." instance=ExtResource( 1 )]
[node name="CameraPivot" type="Position3D" parent="."]
transform = Transform( 1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 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
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, 0, -15 )
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, -13, 0, 16 )
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, 0, -15 )
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, 13, 0, 16 )
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( 1, 0, 0, 0, 1, 0, 0, 0, 1, -13.0506, 0, -15.3728 )
[node name="MobTimer" type="Timer" parent="."]
wait_time = 0.5
autostart = true
[node name="UserInterface" type="Control" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
theme = SubResource( 7 )
[node name="ScoreLabel" type="Label" parent="UserInterface"]
margin_left = 16.0
margin_top = 16.0
margin_right = 67.0
margin_bottom = 30.0
custom_colors/font_color = Color( 0.223529, 0.196078, 0.239216, 1 )
text = "Score: 0"
script = ExtResource( 5 )
[node name="Retry" type="ColorRect" parent="UserInterface"]
anchor_right = 1.0
anchor_bottom = 1.0
color = Color( 0, 0, 0, 0.505882 )
[node name="Label" type="Label" parent="UserInterface/Retry"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -109.5
margin_top = -14.0
margin_right = 109.5
margin_bottom = 14.0
text = "Press Enter to retry. "
[connection signal="hit" from="Player" to="." method="_on_Player_hit"]
[connection signal="timeout" from="MobTimer" to="." method="_on_MobTimer_timeout"]