liblast/Game.tscn

236 lines
7.3 KiB
Text

[gd_scene load_steps=5 format=2]
[ext_resource path="res://Game.gd" type="Script" id=2]
[ext_resource path="res://Level.tscn" type="PackedScene" id=3]
[sub_resource type="ProceduralSky" id=1]
[sub_resource type="Environment" id=2]
background_mode = 2
background_sky = SubResource( 1 )
tonemap_mode = 2
tonemap_white = 2.0
ssao_enabled = true
ssao_radius = 2.5
ssao_radius2 = 4.0
ssao_quality = 2
glow_enabled = true
glow_levels/1 = true
glow_levels/2 = true
glow_levels/4 = true
glow_levels/6 = true
glow_levels/7 = true
glow_intensity = 0.42
glow_strength = 0.2
glow_blend_mode = 0
glow_hdr_threshold = 1.5
glow_bicubic_upscale = true
[node name="Game" type="Spatial"]
script = ExtResource( 2 )
SERVER_IP = "127.0.0.1"
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource( 2 )
[node name="Level" parent="." instance=ExtResource( 3 )]
[node name="Players" type="Spatial" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 12.6315, 8.00684, -4.99273 )
[node name="MenuContainer" type="CenterContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="MainMenu" type="VBoxContainer" parent="MenuContainer"]
margin_left = 312.0
margin_top = 240.0
margin_right = 712.0
margin_bottom = 360.0
rect_min_size = Vector2( 400, 0 )
[node name="QuickJoin" type="Button" parent="MenuContainer/MainMenu"]
margin_right = 400.0
margin_bottom = 20.0
text = "Quick Join"
[node name="Destination" type="HBoxContainer" parent="MenuContainer/MainMenu"]
margin_top = 24.0
margin_right = 400.0
margin_bottom = 48.0
[node name="IPAdress" type="LineEdit" parent="MenuContainer/MainMenu/Destination"]
margin_right = 278.0
margin_bottom = 24.0
size_flags_horizontal = 3
size_flags_stretch_ratio = 2.38
placeholder_text = "IP address"
[node name="Port" type="LineEdit" parent="MenuContainer/MainMenu/Destination"]
margin_left = 282.0
margin_right = 400.0
margin_bottom = 24.0
size_flags_horizontal = 3
placeholder_text = "port"
[node name="NetworkType" type="HBoxContainer" parent="MenuContainer/MainMenu"]
margin_top = 52.0
margin_right = 400.0
margin_bottom = 72.0
[node name="Host" type="Button" parent="MenuContainer/MainMenu/NetworkType"]
margin_right = 198.0
margin_bottom = 20.0
size_flags_horizontal = 3
text = "Host"
[node name="Join" type="Button" parent="MenuContainer/MainMenu/NetworkType"]
margin_left = 202.0
margin_right = 400.0
margin_bottom = 20.0
size_flags_horizontal = 3
text = "Join"
[node name="Options" type="Button" parent="MenuContainer/MainMenu"]
margin_top = 76.0
margin_right = 400.0
margin_bottom = 96.0
text = "Options"
[node name="Quit" type="Button" parent="MenuContainer/MainMenu"]
margin_top = 100.0
margin_right = 400.0
margin_bottom = 120.0
text = "Quit"
[node name="QuickJoinMenu" type="VBoxContainer" parent="MenuContainer"]
visible = false
margin_left = 312.0
margin_top = 254.0
margin_right = 712.0
margin_bottom = 346.0
rect_min_size = Vector2( 400, 0 )
[node name="Back" type="Button" parent="MenuContainer/QuickJoinMenu"]
margin_right = 300.0
margin_bottom = 20.0
text = "Back"
[node name="Home" type="Button" parent="MenuContainer/QuickJoinMenu"]
margin_top = 24.0
margin_right = 300.0
margin_bottom = 44.0
text = "Home"
[node name="Unfa" type="Button" parent="MenuContainer/QuickJoinMenu"]
margin_top = 48.0
margin_right = 300.0
margin_bottom = 68.0
text = "Unfa"
[node name="Jan" type="Button" parent="MenuContainer/QuickJoinMenu"]
margin_top = 72.0
margin_right = 300.0
margin_bottom = 92.0
text = "Jan"
[node name="OptionsMenu" type="VBoxContainer" parent="MenuContainer"]
visible = false
margin_left = 312.0
margin_top = 266.0
margin_right = 712.0
margin_bottom = 334.0
rect_min_size = Vector2( 400, 0 )
[node name="Back" type="Button" parent="MenuContainer/OptionsMenu"]
margin_left = 129.0
margin_top = -10.0
margin_right = 171.0
margin_bottom = 10.0
text = "Back"
[node name="Controls" type="Button" parent="MenuContainer/OptionsMenu"]
margin_left = 129.0
margin_top = -10.0
margin_right = 171.0
margin_bottom = 10.0
text = "Controls"
[node name="Graphics" type="Button" parent="MenuContainer/OptionsMenu"]
margin_left = 129.0
margin_top = -10.0
margin_right = 171.0
margin_bottom = 10.0
text = "Graphics"
[node name="ControlsMenu" type="VBoxContainer" parent="MenuContainer"]
visible = false
margin_left = 312.0
margin_top = 280.0
margin_right = 712.0
margin_bottom = 320.0
rect_min_size = Vector2( 400, 0 )
[node name="Back" type="Button" parent="MenuContainer/ControlsMenu"]
margin_right = 300.0
margin_bottom = 20.0
text = "Back"
[node name="HBoxContainer" type="HBoxContainer" parent="MenuContainer/ControlsMenu"]
margin_right = 40.0
margin_bottom = 40.0
[node name="SensitivityLabel" type="Label" parent="MenuContainer/ControlsMenu/HBoxContainer"]
margin_right = 40.0
margin_bottom = 14.0
text = "Sensitivity"
[node name="SensitivitySlider" type="HSlider" parent="MenuContainer/ControlsMenu/HBoxContainer"]
margin_right = 16.0
margin_bottom = 16.0
size_flags_horizontal = 3
min_value = 0.2
max_value = 5.0
step = 0.0
value = 1.0
exp_edit = true
allow_greater = true
allow_lesser = true
[node name="GraphicsMenu" type="VBoxContainer" parent="MenuContainer"]
visible = false
margin_left = 312.0
margin_top = 268.0
margin_right = 712.0
margin_bottom = 332.0
rect_min_size = Vector2( 400, 0 )
[node name="Back" type="Button" parent="MenuContainer/GraphicsMenu"]
margin_right = 300.0
margin_bottom = 20.0
text = "Back"
[node name="Fullscreen" type="CheckButton" parent="MenuContainer/GraphicsMenu"]
margin_top = 24.0
margin_right = 300.0
margin_bottom = 64.0
text = "Fullscreen"
[connection signal="pressed" from="MenuContainer/MainMenu/QuickJoin" to="." method="open_menu" binds= [ "QuickJoinMenu" ]]
[connection signal="pressed" from="MenuContainer/MainMenu/NetworkType/Host" to="." method="initialize_server"]
[connection signal="pressed" from="MenuContainer/MainMenu/NetworkType/Join" to="." method="initialize_client"]
[connection signal="pressed" from="MenuContainer/MainMenu/Options" to="." method="open_menu" binds= [ "OptionsMenu" ]]
[connection signal="pressed" from="MenuContainer/MainMenu/Quit" to="." method="quit"]
[connection signal="pressed" from="MenuContainer/QuickJoinMenu/Back" to="." method="return_to_menu" binds= [ "MainMenu" ]]
[connection signal="pressed" from="MenuContainer/QuickJoinMenu/Home" to="." method="join_home"]
[connection signal="pressed" from="MenuContainer/QuickJoinMenu/Unfa" to="." method="join_unfa"]
[connection signal="pressed" from="MenuContainer/QuickJoinMenu/Jan" to="." method="join_jan"]
[connection signal="pressed" from="MenuContainer/OptionsMenu/Back" to="." method="return_to_menu" binds= [ "MainMenu" ]]
[connection signal="pressed" from="MenuContainer/OptionsMenu/Controls" to="." method="open_menu" binds= [ "ControlsMenu" ]]
[connection signal="pressed" from="MenuContainer/OptionsMenu/Graphics" to="." method="open_menu" binds= [ "GraphicsMenu" ]]
[connection signal="pressed" from="MenuContainer/ControlsMenu/Back" to="." method="return_to_menu" binds= [ "OptionsMenu" ]]
[connection signal="value_changed" from="MenuContainer/ControlsMenu/HBoxContainer/SensitivitySlider" to="." method="set_mouse_sensitivity"]
[connection signal="pressed" from="MenuContainer/GraphicsMenu/Back" to="." method="return_to_menu" binds= [ "OptionsMenu" ]]
[connection signal="toggled" from="MenuContainer/GraphicsMenu/Fullscreen" to="." method="set_fullscreen"]