2024-01-20 21:18:58 +00:00
|
|
|
[gd_scene load_steps=23 format=3 uid="uid://b40y7iuskv1ar"]
|
2024-01-15 16:08:26 +00:00
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://world/Game.gd" id="1_xmqq4"]
|
2024-01-20 21:18:58 +00:00
|
|
|
[ext_resource type="Script" path="res://network/client/Client.gd" id="4_ao4cj"]
|
|
|
|
[ext_resource type="Script" path="res://network/client/Ping.gd" id="4_vx388"]
|
2024-01-16 22:01:16 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://2lcnu3dy54lx" path="res://player/Player.tscn" id="5_6c2x8"]
|
2024-01-15 16:08:26 +00:00
|
|
|
[ext_resource type="Environment" uid="uid://dixa0yso2s1u3" path="res://world/Environment.tres" id="5_bll74"]
|
|
|
|
[ext_resource type="Script" path="res://world/Sun.gd" id="5_pf5uw"]
|
|
|
|
[ext_resource type="CameraAttributesPractical" uid="uid://b835orxyqq6w5" path="res://world/CameraAttributes.tres" id="6_8wfwf"]
|
2024-01-18 22:35:17 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://cch67vqpsmtej" path="res://ui/debug/DebugLabel.tscn" id="6_076g5"]
|
2024-01-20 21:18:58 +00:00
|
|
|
[ext_resource type="Script" path="res://network/client/Login.gd" id="6_augbg"]
|
2024-01-18 22:35:17 +00:00
|
|
|
[ext_resource type="Script" path="res://ui/debug/FPSLabel.gd" id="7_3qgww"]
|
2024-01-20 21:18:58 +00:00
|
|
|
[ext_resource type="Script" path="res://network/server/Ping.gd" id="7_8mtv7"]
|
2024-01-18 22:35:17 +00:00
|
|
|
[ext_resource type="Script" path="res://ui/debug/PingLabel.gd" id="7_kmy1y"]
|
2024-01-20 21:18:58 +00:00
|
|
|
[ext_resource type="Script" path="res://network/server/Login.gd" id="8_1y1wq"]
|
2024-01-18 22:35:17 +00:00
|
|
|
[ext_resource type="Script" path="res://ui/debug/PositionLabel.gd" id="8_fge13"]
|
|
|
|
[ext_resource type="Script" path="res://ui/debug/VelocityLabel.gd" id="9_f25hg"]
|
2024-01-16 22:01:16 +00:00
|
|
|
[ext_resource type="Script" path="res://world/Camera.gd" id="9_qfhy4"]
|
2024-01-20 21:18:58 +00:00
|
|
|
[ext_resource type="Material" uid="uid://ddy5gkw0k16dq" path="res://shader/OutlineMaterial.tres" id="10_dii8l"]
|
2024-01-16 22:01:16 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://hnn0n1xc2qt7" path="res://world/Tree.blend" id="15_csh38"]
|
2024-01-17 20:48:35 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://cb2t7bvvf3gwh" path="res://enemy/Slime.tscn" id="16_fuixr"]
|
2024-01-20 21:18:58 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://tgmbtt7u172g" path="res://world/Arena.blend" id="17_q45cd"]
|
|
|
|
[ext_resource type="Script" path="res://network/server/Server.gd" id="19_bwh1t"]
|
2024-01-16 22:01:16 +00:00
|
|
|
|
|
|
|
[sub_resource type="QuadMesh" id="QuadMesh_7yiqd"]
|
2024-01-17 20:48:35 +00:00
|
|
|
material = ExtResource("10_dii8l")
|
2024-01-16 22:01:16 +00:00
|
|
|
flip_faces = true
|
|
|
|
size = Vector2(2, 2)
|
2024-01-15 16:08:26 +00:00
|
|
|
|
|
|
|
[node name="Game" type="Node"]
|
|
|
|
script = ExtResource("1_xmqq4")
|
|
|
|
|
2024-01-20 21:18:58 +00:00
|
|
|
[node name="Client" type="Node" parent="."]
|
2024-01-16 22:01:16 +00:00
|
|
|
unique_name_in_owner = true
|
|
|
|
script = ExtResource("4_ao4cj")
|
2024-01-20 21:18:58 +00:00
|
|
|
ip = null
|
|
|
|
port = null
|
2024-01-15 16:08:26 +00:00
|
|
|
|
2024-01-20 21:18:58 +00:00
|
|
|
[node name="Ping" type="Node" parent="Client"]
|
2024-01-16 22:01:16 +00:00
|
|
|
unique_name_in_owner = true
|
|
|
|
script = ExtResource("4_vx388")
|
2024-01-15 16:08:26 +00:00
|
|
|
|
2024-01-20 21:18:58 +00:00
|
|
|
[node name="Timer" type="Timer" parent="Client/Ping"]
|
2024-01-16 22:01:16 +00:00
|
|
|
autostart = true
|
2024-01-15 16:08:26 +00:00
|
|
|
|
2024-01-20 21:18:58 +00:00
|
|
|
[node name="Login" type="Node" parent="Client"]
|
2024-01-16 22:01:16 +00:00
|
|
|
script = ExtResource("6_augbg")
|
|
|
|
playerScene = ExtResource("5_6c2x8")
|
|
|
|
|
2024-01-20 21:18:58 +00:00
|
|
|
[node name="Timer" type="Timer" parent="Client/Login"]
|
2024-01-16 22:01:16 +00:00
|
|
|
wait_time = 10.0
|
|
|
|
autostart = true
|
2024-01-15 16:08:26 +00:00
|
|
|
|
2024-01-20 21:18:58 +00:00
|
|
|
[node name="Server" type="Node" parent="."]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
script = ExtResource("19_bwh1t")
|
|
|
|
|
|
|
|
[node name="Ping" type="Node" parent="Server"]
|
|
|
|
script = ExtResource("7_8mtv7")
|
|
|
|
|
|
|
|
[node name="Login" type="Node" parent="Server"]
|
|
|
|
script = ExtResource("8_1y1wq")
|
|
|
|
|
|
|
|
[node name="Players" type="Node3D" parent="."]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
|
|
|
|
[node name="Enemies" type="Node3D" parent="."]
|
|
|
|
|
|
|
|
[node name="Slime" parent="Enemies" instance=ExtResource("16_fuixr")]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.53558, 1.28057, -3.79687)
|
|
|
|
|
|
|
|
[node name="Slime2" parent="Enemies" instance=ExtResource("16_fuixr")]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.00829, 1.28057, -1.95247)
|
|
|
|
|
|
|
|
[node name="Slime3" parent="Enemies" instance=ExtResource("16_fuixr")]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.53558, 1.28057, -0.306177)
|
|
|
|
|
|
|
|
[node name="World" type="Node3D" parent="."]
|
|
|
|
|
|
|
|
[node name="Tree" parent="World" instance=ExtResource("15_csh38")]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.11323, 0, -4.64839)
|
|
|
|
|
|
|
|
[node name="Tree2" parent="World" instance=ExtResource("15_csh38")]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.11323, 0, 5.35161)
|
|
|
|
|
|
|
|
[node name="Arena" parent="World" instance=ExtResource("17_q45cd")]
|
|
|
|
|
2024-01-15 23:22:14 +00:00
|
|
|
[node name="UI" type="Control" parent="."]
|
|
|
|
layout_mode = 3
|
|
|
|
anchors_preset = 0
|
|
|
|
|
|
|
|
[node name="CanvasLayer" type="CanvasLayer" parent="UI"]
|
|
|
|
|
2024-01-18 22:35:17 +00:00
|
|
|
[node name="TopLeftMargin" type="MarginContainer" parent="UI/CanvasLayer"]
|
2024-01-15 23:22:14 +00:00
|
|
|
offset_right = 40.0
|
|
|
|
offset_bottom = 50.0
|
|
|
|
|
2024-01-18 22:35:17 +00:00
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="UI/CanvasLayer/TopLeftMargin"]
|
2024-01-15 23:22:14 +00:00
|
|
|
layout_mode = 2
|
|
|
|
|
2024-01-18 22:35:17 +00:00
|
|
|
[node name="FPS" parent="UI/CanvasLayer/TopLeftMargin/VBoxContainer" instance=ExtResource("6_076g5")]
|
2024-01-15 23:22:14 +00:00
|
|
|
layout_mode = 2
|
2024-01-18 22:35:17 +00:00
|
|
|
script = ExtResource("7_3qgww")
|
2024-01-15 23:22:14 +00:00
|
|
|
|
2024-01-18 22:35:17 +00:00
|
|
|
[node name="Ping" parent="UI/CanvasLayer/TopLeftMargin/VBoxContainer" instance=ExtResource("6_076g5")]
|
2024-01-15 23:22:14 +00:00
|
|
|
layout_mode = 2
|
2024-01-18 22:35:17 +00:00
|
|
|
script = ExtResource("7_kmy1y")
|
2024-01-15 23:22:14 +00:00
|
|
|
|
2024-01-18 22:35:17 +00:00
|
|
|
[node name="BottomLeftMargin" type="MarginContainer" parent="UI/CanvasLayer"]
|
|
|
|
anchors_preset = 2
|
|
|
|
anchor_top = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
offset_top = -10.0
|
|
|
|
offset_right = 10.0
|
|
|
|
grow_vertical = 0
|
2024-01-15 23:22:14 +00:00
|
|
|
|
2024-01-18 22:35:17 +00:00
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="UI/CanvasLayer/BottomLeftMargin"]
|
2024-01-16 22:01:16 +00:00
|
|
|
layout_mode = 2
|
2024-01-15 23:22:14 +00:00
|
|
|
|
2024-01-18 22:35:17 +00:00
|
|
|
[node name="Position" parent="UI/CanvasLayer/BottomLeftMargin/VBoxContainer" instance=ExtResource("6_076g5")]
|
2024-01-16 22:01:16 +00:00
|
|
|
layout_mode = 2
|
2024-01-18 22:35:17 +00:00
|
|
|
script = ExtResource("8_fge13")
|
2024-01-15 23:22:14 +00:00
|
|
|
|
2024-01-18 22:35:17 +00:00
|
|
|
[node name="Velocity" parent="UI/CanvasLayer/BottomLeftMargin/VBoxContainer" instance=ExtResource("6_076g5")]
|
2024-01-16 22:01:16 +00:00
|
|
|
layout_mode = 2
|
2024-01-18 22:35:17 +00:00
|
|
|
script = ExtResource("9_f25hg")
|
2024-01-15 16:08:26 +00:00
|
|
|
|
2024-01-20 21:18:58 +00:00
|
|
|
[node name="Viewport" type="SubViewportContainer" parent="."]
|
2024-01-15 16:08:26 +00:00
|
|
|
texture_filter = 1
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
stretch = true
|
|
|
|
|
2024-01-20 21:18:58 +00:00
|
|
|
[node name="SubViewport" type="SubViewport" parent="Viewport"]
|
2024-01-15 16:08:26 +00:00
|
|
|
handle_input_locally = false
|
2024-01-18 22:35:17 +00:00
|
|
|
size = Vector2i(1152, 648)
|
2024-01-15 16:08:26 +00:00
|
|
|
render_target_update_mode = 4
|
|
|
|
|
2024-01-20 21:18:58 +00:00
|
|
|
[node name="CameraPivot" type="Node3D" parent="Viewport/SubViewport"]
|
2024-01-16 22:01:16 +00:00
|
|
|
|
2024-01-20 21:18:58 +00:00
|
|
|
[node name="Camera" type="Camera3D" parent="Viewport/SubViewport/CameraPivot" node_paths=PackedStringArray("center")]
|
2024-01-18 22:35:17 +00:00
|
|
|
transform = Transform3D(0.707107, 0.353554, -0.612372, 0, 0.866026, 0.5, 0.707107, -0.353554, 0.612372, -10, 10, 10)
|
2024-01-15 16:08:26 +00:00
|
|
|
projection = 1
|
|
|
|
current = true
|
|
|
|
fov = 90.0
|
2024-01-16 22:01:16 +00:00
|
|
|
size = 10.0
|
|
|
|
far = 100.0
|
|
|
|
script = ExtResource("9_qfhy4")
|
|
|
|
center = NodePath("..")
|
|
|
|
follow_speed = 5.0
|
2024-01-15 16:08:26 +00:00
|
|
|
|
2024-01-20 21:18:58 +00:00
|
|
|
[node name="PostProcessing" type="MeshInstance3D" parent="Viewport/SubViewport/CameraPivot/Camera"]
|
2024-01-15 16:08:26 +00:00
|
|
|
unique_name_in_owner = true
|
|
|
|
extra_cull_margin = 16384.0
|
|
|
|
mesh = SubResource("QuadMesh_7yiqd")
|
|
|
|
|
2024-01-20 21:18:58 +00:00
|
|
|
[node name="Sun" type="DirectionalLight3D" parent="Viewport/SubViewport"]
|
|
|
|
transform = Transform3D(0.984808, 0.122788, -0.122788, 0, 0.707107, 0.707107, 0.173648, -0.696364, 0.696364, 0, 10, 0)
|
2024-01-15 16:08:26 +00:00
|
|
|
shadow_enabled = true
|
2024-01-17 20:48:35 +00:00
|
|
|
directional_shadow_mode = 0
|
2024-01-15 16:08:26 +00:00
|
|
|
script = ExtResource("5_pf5uw")
|
|
|
|
|
2024-01-20 21:18:58 +00:00
|
|
|
[node name="Environment" type="WorldEnvironment" parent="Viewport/SubViewport"]
|
2024-01-15 16:08:26 +00:00
|
|
|
environment = ExtResource("5_bll74")
|
|
|
|
camera_attributes = ExtResource("6_8wfwf")
|
2024-01-16 22:01:16 +00:00
|
|
|
|
2024-01-20 21:18:58 +00:00
|
|
|
[connection signal="timeout" from="Client/Ping/Timer" to="Client/Ping" method="send_ping"]
|
|
|
|
[connection signal="timeout" from="Client/Login/Timer" to="Client/Login" method="send_login"]
|