2020-09-28 22:21:26 +02:00
|
|
|
[gd_scene load_steps=6 format=2]
|
2020-06-14 00:29:01 +02:00
|
|
|
|
2020-09-28 22:21:26 +02:00
|
|
|
[ext_resource path="res://Assets/HUD/HUD.tscn" type="PackedScene" id=1]
|
2020-06-14 00:40:07 +02:00
|
|
|
[ext_resource path="res://Game.gd" type="Script" id=2]
|
2020-06-14 01:14:58 +02:00
|
|
|
[ext_resource path="res://Level.tscn" type="PackedScene" id=3]
|
2020-06-14 00:17:45 +02:00
|
|
|
|
2020-06-23 01:37:54 +02:00
|
|
|
[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
|
2020-09-22 10:19:15 +02:00
|
|
|
dof_blur_far_distance = 30.0
|
|
|
|
dof_blur_far_transition = 7.62
|
|
|
|
dof_blur_far_amount = 0.08
|
|
|
|
dof_blur_far_quality = 2
|
|
|
|
dof_blur_near_distance = 1.74
|
|
|
|
dof_blur_near_transition = 1.15
|
|
|
|
dof_blur_near_amount = 0.11
|
|
|
|
dof_blur_near_quality = 2
|
2020-06-23 01:37:54 +02:00
|
|
|
glow_enabled = true
|
|
|
|
glow_levels/1 = true
|
|
|
|
glow_levels/2 = true
|
|
|
|
glow_levels/4 = true
|
|
|
|
glow_levels/6 = true
|
|
|
|
glow_levels/7 = true
|
2020-09-12 22:44:03 +02:00
|
|
|
glow_intensity = 0.42
|
2020-09-22 10:19:15 +02:00
|
|
|
glow_strength = 0.4
|
2020-06-23 01:37:54 +02:00
|
|
|
glow_blend_mode = 0
|
2020-09-22 10:19:15 +02:00
|
|
|
glow_hdr_threshold = 1.3
|
2020-06-23 01:37:54 +02:00
|
|
|
glow_bicubic_upscale = true
|
|
|
|
|
2020-09-21 15:17:29 +02:00
|
|
|
[node name="Game" type="Node"]
|
2020-06-14 00:40:07 +02:00
|
|
|
script = ExtResource( 2 )
|
2020-06-18 22:02:59 +02:00
|
|
|
SERVER_IP = "127.0.0.1"
|
2020-06-14 00:17:45 +02:00
|
|
|
|
2020-09-28 22:21:26 +02:00
|
|
|
[node name="HUD" parent="." instance=ExtResource( 1 )]
|
|
|
|
|
2020-06-23 01:37:54 +02:00
|
|
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
|
|
|
environment = SubResource( 2 )
|
|
|
|
|
2020-06-14 01:14:58 +02:00
|
|
|
[node name="Level" parent="." instance=ExtResource( 3 )]
|
2020-06-14 00:17:45 +02:00
|
|
|
|
2020-06-14 21:34:17 +02:00
|
|
|
[node name="Players" type="Spatial" parent="."]
|
2020-06-18 01:16:46 +02:00
|
|
|
|
|
|
|
[node name="MenuContainer" type="CenterContainer" parent="."]
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
2020-09-28 22:21:26 +02:00
|
|
|
margin_left = -0.943848
|
|
|
|
margin_right = -0.943848
|
2020-06-18 01:16:46 +02:00
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
2020-06-18 22:02:59 +02:00
|
|
|
[node name="MainMenu" type="VBoxContainer" parent="MenuContainer"]
|
2020-06-20 00:35:42 +02:00
|
|
|
margin_left = 312.0
|
|
|
|
margin_top = 240.0
|
|
|
|
margin_right = 712.0
|
|
|
|
margin_bottom = 360.0
|
|
|
|
rect_min_size = Vector2( 400, 0 )
|
2020-06-18 01:16:46 +02:00
|
|
|
|
2020-06-18 22:02:59 +02:00
|
|
|
[node name="QuickJoin" type="Button" parent="MenuContainer/MainMenu"]
|
2020-06-20 00:35:42 +02:00
|
|
|
margin_right = 400.0
|
2020-06-18 01:16:46 +02:00
|
|
|
margin_bottom = 20.0
|
2020-06-18 22:02:59 +02:00
|
|
|
text = "Quick Join"
|
2020-06-18 01:16:46 +02:00
|
|
|
|
2020-06-18 22:02:59 +02:00
|
|
|
[node name="Destination" type="HBoxContainer" parent="MenuContainer/MainMenu"]
|
2020-06-18 01:16:46 +02:00
|
|
|
margin_top = 24.0
|
2020-06-20 00:35:42 +02:00
|
|
|
margin_right = 400.0
|
2020-06-18 01:16:46 +02:00
|
|
|
margin_bottom = 48.0
|
|
|
|
|
2020-06-18 22:02:59 +02:00
|
|
|
[node name="IPAdress" type="LineEdit" parent="MenuContainer/MainMenu/Destination"]
|
2020-06-20 00:35:42 +02:00
|
|
|
margin_right = 278.0
|
2020-06-18 01:16:46 +02:00
|
|
|
margin_bottom = 24.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_stretch_ratio = 2.38
|
|
|
|
placeholder_text = "IP address"
|
2020-09-21 15:17:29 +02:00
|
|
|
caret_blink = true
|
|
|
|
caret_blink_speed = 0.5
|
2020-06-18 01:16:46 +02:00
|
|
|
|
2020-06-18 22:02:59 +02:00
|
|
|
[node name="Port" type="LineEdit" parent="MenuContainer/MainMenu/Destination"]
|
2020-06-20 00:35:42 +02:00
|
|
|
margin_left = 282.0
|
|
|
|
margin_right = 400.0
|
2020-06-18 01:16:46 +02:00
|
|
|
margin_bottom = 24.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
placeholder_text = "port"
|
2020-09-21 15:17:29 +02:00
|
|
|
caret_blink = true
|
|
|
|
caret_blink_speed = 0.5
|
2020-06-18 01:16:46 +02:00
|
|
|
|
2020-06-18 22:02:59 +02:00
|
|
|
[node name="NetworkType" type="HBoxContainer" parent="MenuContainer/MainMenu"]
|
2020-06-18 01:16:46 +02:00
|
|
|
margin_top = 52.0
|
2020-06-20 00:35:42 +02:00
|
|
|
margin_right = 400.0
|
2020-06-18 01:16:46 +02:00
|
|
|
margin_bottom = 72.0
|
|
|
|
|
2020-06-18 22:02:59 +02:00
|
|
|
[node name="Host" type="Button" parent="MenuContainer/MainMenu/NetworkType"]
|
2020-09-21 15:17:29 +02:00
|
|
|
margin_right = 130.0
|
2020-06-18 01:16:46 +02:00
|
|
|
margin_bottom = 20.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
text = "Host"
|
|
|
|
|
2020-09-21 15:17:29 +02:00
|
|
|
[node name="HostAsSpectator" type="Button" parent="MenuContainer/MainMenu/NetworkType"]
|
|
|
|
margin_left = 134.0
|
|
|
|
margin_right = 265.0
|
|
|
|
margin_bottom = 20.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
text = "Host As Spectator"
|
|
|
|
|
2020-06-18 22:02:59 +02:00
|
|
|
[node name="Join" type="Button" parent="MenuContainer/MainMenu/NetworkType"]
|
2020-09-21 15:17:29 +02:00
|
|
|
margin_left = 269.0
|
2020-06-20 00:35:42 +02:00
|
|
|
margin_right = 400.0
|
2020-06-18 01:16:46 +02:00
|
|
|
margin_bottom = 20.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
text = "Join"
|
|
|
|
|
2020-06-20 00:35:42 +02:00
|
|
|
[node name="Options" type="Button" parent="MenuContainer/MainMenu"]
|
2020-06-18 01:16:46 +02:00
|
|
|
margin_top = 76.0
|
2020-06-20 00:35:42 +02:00
|
|
|
margin_right = 400.0
|
2020-06-18 01:16:46 +02:00
|
|
|
margin_bottom = 96.0
|
2020-06-20 00:35:42 +02:00
|
|
|
text = "Options"
|
|
|
|
|
|
|
|
[node name="Quit" type="Button" parent="MenuContainer/MainMenu"]
|
|
|
|
margin_top = 100.0
|
|
|
|
margin_right = 400.0
|
|
|
|
margin_bottom = 120.0
|
2020-06-18 01:16:46 +02:00
|
|
|
text = "Quit"
|
2020-06-18 22:02:59 +02:00
|
|
|
|
|
|
|
[node name="QuickJoinMenu" type="VBoxContainer" parent="MenuContainer"]
|
|
|
|
visible = false
|
2020-06-20 00:35:42 +02:00
|
|
|
margin_left = 312.0
|
2020-06-18 22:02:59 +02:00
|
|
|
margin_top = 254.0
|
2020-06-20 00:35:42 +02:00
|
|
|
margin_right = 712.0
|
2020-06-18 22:02:59 +02:00
|
|
|
margin_bottom = 346.0
|
2020-06-20 00:35:42 +02:00
|
|
|
rect_min_size = Vector2( 400, 0 )
|
2020-06-18 22:02:59 +02:00
|
|
|
|
|
|
|
[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"
|
2020-06-20 00:35:42 +02:00
|
|
|
|
|
|
|
[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" ]]
|
2020-09-19 00:54:13 +02:00
|
|
|
[connection signal="text_changed" from="MenuContainer/MainMenu/Destination/IPAdress" to="." method="set_ip"]
|
2020-06-18 22:02:59 +02:00
|
|
|
[connection signal="pressed" from="MenuContainer/MainMenu/NetworkType/Host" to="." method="initialize_server"]
|
2020-09-21 15:17:29 +02:00
|
|
|
[connection signal="pressed" from="MenuContainer/MainMenu/NetworkType/HostAsSpectator" to="." method="initialize_server" binds= [ false ]]
|
2020-06-18 22:02:59 +02:00
|
|
|
[connection signal="pressed" from="MenuContainer/MainMenu/NetworkType/Join" to="." method="initialize_client"]
|
2020-06-20 00:35:42 +02:00
|
|
|
[connection signal="pressed" from="MenuContainer/MainMenu/Options" to="." method="open_menu" binds= [ "OptionsMenu" ]]
|
2020-06-18 22:02:59 +02:00
|
|
|
[connection signal="pressed" from="MenuContainer/MainMenu/Quit" to="." method="quit"]
|
2020-06-20 00:35:42 +02:00
|
|
|
[connection signal="pressed" from="MenuContainer/QuickJoinMenu/Back" to="." method="return_to_menu" binds= [ "MainMenu" ]]
|
2020-06-18 22:02:59 +02:00
|
|
|
[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"]
|
2020-06-20 00:35:42 +02:00
|
|
|
[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"]
|