-
Notifications
You must be signed in to change notification settings - Fork 1
/
level2.tscn
139 lines (112 loc) · 6.14 KB
/
level2.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
130
131
132
133
134
135
136
137
138
139
[gd_scene load_steps=14 format=3 uid="uid://djic3dpnec77y"]
[ext_resource type="Script" path="res://level2.gd" id="1_bcue6"]
[ext_resource type="PackedScene" uid="uid://hbk1l0bonreu" path="res://player.tscn" id="1_j1vwv"]
[ext_resource type="Script" path="res://cameraNode.gd" id="2_g8oil"]
[ext_resource type="PackedScene" uid="uid://csjqjq6hmlm4e" path="res://largeGrass.tscn" id="3_mi5eu"]
[ext_resource type="PackedScene" uid="uid://c2nudd4rhave" path="res://mediumGrass.tscn" id="4_558sc"]
[ext_resource type="PackedScene" uid="uid://55qf2k2e80mb" path="res://background.tscn" id="7_fh4qx"]
[ext_resource type="PackedScene" uid="uid://541q511nk721" path="res://falling_platform.tscn" id="7_vyygh"]
[ext_resource type="PackedScene" uid="uid://d13mxrwk4mls3" path="res://goal.tscn" id="8_awjwd"]
[ext_resource type="PackedScene" uid="uid://cq8yxalyyastx" path="res://smallGrass.tscn" id="9_owr3e"]
[ext_resource type="PackedScene" uid="uid://yorer1ymbdyw" path="res://platform.tscn" id="10_aig5p"]
[ext_resource type="PackedScene" uid="uid://c5l65pcv578or" path="res://enemy.tscn" id="11_3y0v7"]
[ext_resource type="Script" path="res://stopwatch.gd" id="12_1ivi7"]
[ext_resource type="Script" path="res://level2FinishedUI.gd" id="13_02bgl"]
[node name="CanvasLayer" type="CanvasLayer"]
[node name="Node3D" type="Node3D" parent="."]
script = ExtResource("1_bcue6")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="Node3D"]
transform = Transform3D(1, 0, 0, 0, 0.355482, 0.934683, 0, -0.934683, 0.355482, 0, 3.91741, 0.756045)
[node name="player" parent="Node3D" instance=ExtResource("1_j1vwv")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
level = 2
[node name="cameraNode" type="Node3D" parent="Node3D"]
transform = Transform3D(0.98085, -0.0558571, 0.186584, 0, 0.957993, 0.286792, -0.194765, -0.2813, 0.939647, 3.17835, 3.9898, 6.45874)
script = ExtResource("2_g8oil")
[node name="CameraGame" type="Camera3D" parent="Node3D/cameraNode"]
transform = Transform3D(1, 7.45058e-09, -1.49012e-08, 0, 1, -2.98023e-08, 0, 0, 1, 0, 0, 0)
current = true
fov = 59.0
[node name="largeGrass" parent="Node3D" instance=ExtResource("3_mi5eu")]
[node name="Node3D" parent="Node3D" instance=ExtResource("7_fh4qx")]
[node name="goal" parent="Node3D" instance=ExtResource("8_awjwd")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 19.3357, 0, -35.7237)
[node name="fallingPlatform" parent="Node3D" instance=ExtResource("7_vyygh")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.198656, 0, -10.0009)
defaultPos = Vector3(0.199, 0, -10.001)
[node name="fallingPlatform2" parent="Node3D" instance=ExtResource("7_vyygh")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.54422, 0, -16.799)
defaultPos = Vector3(-4.544, 0, -16.799)
[node name="fallingPlatform3" parent="Node3D" instance=ExtResource("7_vyygh")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 11.4875, 0, -30.5679)
defaultPos = Vector3(11.487, 0, -30.568)
[node name="mediumGrass" parent="Node3D" instance=ExtResource("4_558sc")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.69563, 0, -22.5405)
[node name="smallGrass" parent="Node3D" instance=ExtResource("9_owr3e")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 16.7986, 0, -30.5098)
[node name="platform" parent="Node3D" instance=ExtResource("10_aig5p")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.585094, 0, -31.7493)
[node name="enemy" parent="Node3D" node_paths=PackedStringArray("platform") instance=ExtResource("11_3y0v7")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.30223, -30.645)
defaultPos = Vector3(0, 2.302, -30.645)
platform = NodePath("../platform")
[node name="stopwatch" type="Node" parent="."]
script = ExtResource("12_1ivi7")
[node name="level2FinishedUI" type="Control" parent="."]
visible = false
layout_mode = 3
anchors_preset = 0
offset_right = 554.0
offset_bottom = 444.0
pivot_offset = Vector2(-812, 333)
size_flags_horizontal = 4
script = ExtResource("13_02bgl")
[node name="finishBox" type="Panel" parent="level2FinishedUI"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = 504.0
offset_top = 130.0
offset_right = 965.0
offset_bottom = 500.0
grow_horizontal = 2
grow_vertical = 2
[node name="MarginContainer" type="MarginContainer" parent="level2FinishedUI/finishBox"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -124.0
offset_top = -64.5
offset_right = 124.0
offset_bottom = 64.5
grow_horizontal = 2
grow_vertical = 2
[node name="VBoxContainer" type="VBoxContainer" parent="level2FinishedUI/finishBox/MarginContainer"]
layout_mode = 2
size_flags_horizontal = 4
[node name="levelLabel" type="Label" parent="level2FinishedUI/finishBox/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "Level 2 Finished!"
horizontal_alignment = 1
[node name="timeLabel" type="Label" parent="level2FinishedUI/finishBox/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "Time: <time>"
horizontal_alignment = 1
[node name="startOver" type="Button" parent="level2FinishedUI/finishBox/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "Start Over"
[node name="nextLevel" type="Button" parent="level2FinishedUI/finishBox/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "Next Level"
[connection signal="pressed" from="level2FinishedUI/finishBox/MarginContainer/VBoxContainer/startOver" to="Node3D" method="_on_start_over_pressed"]
[connection signal="pressed" from="level2FinishedUI/finishBox/MarginContainer/VBoxContainer/startOver" to="level2FinishedUI" method="_on_start_pressed"]
[connection signal="pressed" from="level2FinishedUI/finishBox/MarginContainer/VBoxContainer/startOver" to="level2FinishedUI" method="_on_start_over_pressed"]
[connection signal="pressed" from="level2FinishedUI/finishBox/MarginContainer/VBoxContainer/nextLevel" to="Node3D" method="_on_next_level_pressed"]
[connection signal="pressed" from="level2FinishedUI/finishBox/MarginContainer/VBoxContainer/nextLevel" to="level2FinishedUI" method="_on_next_level_pressed"]
[connection signal="pressed" from="level2FinishedUI/finishBox/MarginContainer/VBoxContainer/nextLevel" to="level2FinishedUI" method="_on_exit_pressed"]