feat: final
This commit is contained in:
parent
ae705c5d2f
commit
17dff11914
12 changed files with 187 additions and 11 deletions
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=9 format=3 uid="uid://cnau7sr4mu3gf"]
|
||||
[gd_scene load_steps=10 format=3 uid="uid://cnau7sr4mu3gf"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://d0w3tum281vei" path="res://objects/level.tscn" id="1_l6cm7"]
|
||||
[ext_resource type="Texture2D" uid="uid://qxwsryrw0ny4" path="res://rendering/kloppenheim_06_4k.exr" id="2_ekxnf"]
|
||||
|
|
@ -49,6 +49,7 @@ func _ready():
|
|||
func updated_scale():
|
||||
ValleyRoot.set_render_factor(container.stretch_shrink)
|
||||
$Label.text = \"%.2fx\" % (1.0/container.stretch_shrink)
|
||||
$Increase.disabled = container.stretch_shrink == 1.0
|
||||
|
||||
func _on_lower_pressed() -> void:
|
||||
container.stretch_shrink += 1
|
||||
|
|
@ -60,6 +61,13 @@ func _on_increase_pressed() -> void:
|
|||
updated_scale()
|
||||
"
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_bqqt6"]
|
||||
script/source = "extends Button
|
||||
|
||||
func _on_button_up() -> void:
|
||||
self.get_tree().quit(0)
|
||||
"
|
||||
|
||||
[node name="MainMenu" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
|
|
@ -114,8 +122,9 @@ grow_vertical = 0
|
|||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer"]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="Button" type="Button" parent="PanelContainer/VBoxContainer"]
|
||||
[node name="Start" type="Button" parent="PanelContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
focus_neighbor_bottom = NodePath("../Resolution/Lower")
|
||||
theme_override_font_sizes/font_size = 50
|
||||
|
|
@ -134,8 +143,9 @@ script = SubResource("GDScript_ekxnf")
|
|||
|
||||
[node name="Lower" type="Button" parent="PanelContainer/VBoxContainer/Resolution"]
|
||||
layout_mode = 2
|
||||
focus_neighbor_top = NodePath("../../Button")
|
||||
focus_neighbor_top = NodePath("../../Start")
|
||||
focus_neighbor_right = NodePath("../Increase")
|
||||
focus_neighbor_bottom = NodePath("../../Quit")
|
||||
theme_override_font_sizes/font_size = 25
|
||||
text = "<"
|
||||
|
||||
|
|
@ -149,10 +159,19 @@ horizontal_alignment = 1
|
|||
[node name="Increase" type="Button" parent="PanelContainer/VBoxContainer/Resolution"]
|
||||
layout_mode = 2
|
||||
focus_neighbor_left = NodePath("../Lower")
|
||||
focus_neighbor_top = NodePath("../../Button")
|
||||
focus_neighbor_top = NodePath("../../Start")
|
||||
focus_neighbor_bottom = NodePath("../../Quit")
|
||||
theme_override_font_sizes/font_size = 25
|
||||
text = ">"
|
||||
|
||||
[node name="Quit" type="Button" parent="PanelContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
focus_neighbor_top = NodePath("../Resolution/Lower")
|
||||
theme_override_font_sizes/font_size = 25
|
||||
text = "Quit"
|
||||
script = SubResource("GDScript_bqqt6")
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 13
|
||||
|
|
@ -167,6 +186,7 @@ texture = ExtResource("3_bqqt6")
|
|||
expand_mode = 2
|
||||
stretch_mode = 4
|
||||
|
||||
[connection signal="button_up" from="PanelContainer/VBoxContainer/Button" to="PanelContainer/VBoxContainer/Button" method="_on_button_up"]
|
||||
[connection signal="button_up" from="PanelContainer/VBoxContainer/Start" to="PanelContainer/VBoxContainer/Start" method="_on_button_up"]
|
||||
[connection signal="pressed" from="PanelContainer/VBoxContainer/Resolution/Lower" to="PanelContainer/VBoxContainer/Resolution" method="_on_lower_pressed"]
|
||||
[connection signal="pressed" from="PanelContainer/VBoxContainer/Resolution/Increase" to="PanelContainer/VBoxContainer/Resolution" method="_on_increase_pressed"]
|
||||
[connection signal="button_up" from="PanelContainer/VBoxContainer/Quit" to="PanelContainer/VBoxContainer/Quit" method="_on_button_up"]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=22 format=3 uid="uid://sofv1apr4467"]
|
||||
[gd_scene load_steps=24 format=3 uid="uid://sofv1apr4467"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dy4yl1paa8whs" path="res://ui/ui.tscn" id="1_a2vvy"]
|
||||
[ext_resource type="PackedScene" uid="uid://dcgsrdacswacl" path="res://objects/player.tscn" id="2_pvuhy"]
|
||||
|
|
@ -66,7 +66,7 @@ script/source = "extends CheckpointArea
|
|||
|
||||
func _on_body_entered(body: Node3D) -> void:
|
||||
if body.is_class(\"PlayerBody\"):
|
||||
GameUI.get_singleton().display_message(\"Turn corners quickly by pressing [img height=\\\"100\\\"]uid://baw7deolvkudx[/img] while turning\")
|
||||
GameUI.get_singleton().display_message(\"Turn corners quickly by pressing [img height=\\\"100\\\"]uid://baw7deolvkudx[/img]/shift while turning\")
|
||||
"
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_l73gk"]
|
||||
|
|
@ -81,6 +81,17 @@ size = Vector3(8.24559, 12.443, 12.8204)
|
|||
[sub_resource type="BoxShape3D" id="BoxShape3D_2lbax"]
|
||||
size = Vector3(36.8259, 22.1272, 32.501)
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_m3qr3"]
|
||||
script/source = "extends CheckpointArea
|
||||
|
||||
func _on_body_entered(body: Node3D) -> void:
|
||||
if body.is_class(\"PlayerBody\"):
|
||||
GameUI.get_singleton().display_message(\"Press [img]uid://d4c83k2utears[/img]/R to reload last checkpoint\")
|
||||
"
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_fmd53"]
|
||||
size = Vector3(10.512, 4, 8.93457)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_a2vvy"]
|
||||
size = Vector3(85.4894, 10.9026, 9.25488)
|
||||
|
||||
|
|
@ -290,6 +301,17 @@ collision_mask = 2
|
|||
shape = SubResource("BoxShape3D_l73gk")
|
||||
debug_color = Color(0.255, 0.9, 0, 1)
|
||||
|
||||
[node name="CheckpointArea13" type="CheckpointArea" parent="SubViewportContainer/SubViewport"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 151.633, 2.56461, 235.603)
|
||||
collision_layer = 2
|
||||
collision_mask = 2
|
||||
script = SubResource("GDScript_m3qr3")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="SubViewportContainer/SubViewport/CheckpointArea13"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.32373, -3.14111)
|
||||
shape = SubResource("BoxShape3D_fmd53")
|
||||
debug_color = Color(0.255, 0.9, 0, 1)
|
||||
|
||||
[node name="CheckpointArea15" type="CheckpointArea" parent="SubViewportContainer/SubViewport"]
|
||||
transform = Transform3D(0.999984, -5.03508e-10, 0.00572465, 5.03483e-10, 1, 5.78298e-12, -0.00572465, -2.89943e-12, 0.999984, 201.691, -1.75429, 232.065)
|
||||
collision_layer = 2
|
||||
|
|
@ -303,3 +325,4 @@ debug_color = Color(0.255, 0.9, 0, 1)
|
|||
[connection signal="body_entered" from="SubViewportContainer/SubViewport/VictoryArea" to="SubViewportContainer/SubViewport/VictoryArea" method="_on_body_entered"]
|
||||
[connection signal="body_entered" from="SubViewportContainer/SubViewport/ReloadArea2" to="SubViewportContainer/SubViewport/ReloadArea2" method="_on_body_entered"]
|
||||
[connection signal="body_entered" from="SubViewportContainer/SubViewport/CheckpointArea" to="SubViewportContainer/SubViewport/CheckpointArea" method="_on_body_entered"]
|
||||
[connection signal="body_entered" from="SubViewportContainer/SubViewport/CheckpointArea13" to="SubViewportContainer/SubViewport/CheckpointArea13" method="_on_body_entered"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue