[gd_scene load_steps=24 format=3 uid="uid://b40y7iuskv1ar"] [ext_resource type="Script" path="res://Main.gd" id="1_cw3ws"] [ext_resource type="Script" path="res://network/Client.gd" id="2_8hxcx"] [ext_resource type="Script" path="res://network/Ping.gd" id="3_d6qf1"] [ext_resource type="Script" path="res://network/Login.gd" id="4_fsx7a"] [ext_resource type="Script" path="res://network/PlayerAdd.gd" id="5_376ik"] [ext_resource type="PackedScene" uid="uid://2lcnu3dy54lx" path="res://player/Player.tscn" id="6_cdj8w"] [ext_resource type="Script" path="res://network/PlayerRemove.gd" id="7_2r42o"] [ext_resource type="Script" path="res://network/PlayerMove.gd" id="8_ke1yy"] [ext_resource type="Script" path="res://network/PlayerJump.gd" id="9_o8sk8"] [ext_resource type="Script" path="res://network/Chat.gd" id="10_y3len"] [ext_resource type="Script" path="res://world/Sun.gd" id="11_4jb08"] [ext_resource type="Environment" uid="uid://dixa0yso2s1u3" path="res://world/Environment.tres" id="12_cscto"] [ext_resource type="CameraAttributesPractical" uid="uid://b835orxyqq6w5" path="res://camera/CameraAttributes.tres" id="13_pvug4"] [ext_resource type="PackedScene" uid="uid://hnn0n1xc2qt7" path="res://world/Tree.blend" id="14_7jtdl"] [ext_resource type="PackedScene" uid="uid://cb2t7bvvf3gwh" path="res://enemy/slime/Slime.tscn" id="15_hgl78"] [ext_resource type="Script" path="res://world/PlayerManager.gd" id="16_dp6bj"] [ext_resource type="PackedScene" uid="uid://dagn5bf7ou3sd" path="res://ui/UI.tscn" id="17_43qhq"] [ext_resource type="Script" path="res://camera/Camera.gd" id="18_wogcj"] [ext_resource type="Material" uid="uid://ddy5gkw0k16dq" path="res://shader/OutlineMaterial.tres" id="19_d2i56"] [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_lp0k7"] albedo_color = Color(0, 0, 0, 1) [sub_resource type="BoxMesh" id="BoxMesh_j5fsa"] material = SubResource("StandardMaterial3D_lp0k7") size = Vector3(100, 1, 100) [sub_resource type="BoxShape3D" id="BoxShape3D_yg2lt"] size = Vector3(100, 1, 100) [sub_resource type="QuadMesh" id="QuadMesh_7yiqd"] material = ExtResource("19_d2i56") flip_faces = true size = Vector2(2, 2) [node name="Main" type="Node"] script = ExtResource("1_cw3ws") [node name="Client" type="Node" parent="."] unique_name_in_owner = true script = ExtResource("2_8hxcx") [node name="Ping" type="Node" parent="Client"] unique_name_in_owner = true script = ExtResource("3_d6qf1") packet_type = 1 [node name="Timer" type="Timer" parent="Client/Ping"] autostart = true [node name="Login" type="Node" parent="Client"] unique_name_in_owner = true script = ExtResource("4_fsx7a") packet_type = 2 [node name="Timer" type="Timer" parent="Client/Login"] wait_time = 5.0 autostart = true [node name="PlayerAdd" type="Node" parent="Client"] unique_name_in_owner = true script = ExtResource("5_376ik") player_scene = ExtResource("6_cdj8w") packet_type = 10 [node name="PlayerRemove" type="Node" parent="Client"] script = ExtResource("7_2r42o") packet_type = 11 [node name="PlayerMove" type="Node" parent="Client"] script = ExtResource("8_ke1yy") delay = null packet_type = 12 [node name="PlayerJump" type="Node" parent="Client"] script = ExtResource("9_o8sk8") packet_type = 13 [node name="Chat" type="Node" parent="Client"] unique_name_in_owner = true script = ExtResource("10_y3len") packet_type = 20 [node name="Statistics" type="Timer" parent="Client"] autostart = true [node name="World" type="Node3D" parent="."] [node name="Sun" type="DirectionalLight3D" parent="World"] transform = Transform3D(0.984808, 0.122788, -0.122788, 0, 0.707107, 0.707107, 0.173648, -0.696364, 0.696364, 0, 10, 0) shadow_enabled = true directional_shadow_mode = 0 script = ExtResource("11_4jb08") [node name="Environment" type="WorldEnvironment" parent="World"] environment = ExtResource("12_cscto") camera_attributes = ExtResource("13_pvug4") [node name="Trees" type="Node3D" parent="World"] [node name="Tree" parent="World/Trees" instance=ExtResource("14_7jtdl")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.11323, 0, -7.57074) [node name="Tree2" parent="World/Trees" instance=ExtResource("14_7jtdl")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.11323, 0, 7.80548) [node name="Enemies" type="Node3D" parent="World"] [node name="Slime" parent="World/Enemies" instance=ExtResource("15_hgl78")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.53558, 1.28057, -3.79687) [node name="Slime2" parent="World/Enemies" instance=ExtResource("15_hgl78")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.00829, 1.28057, -1.95247) [node name="Slime3" parent="World/Enemies" instance=ExtResource("15_hgl78")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.53558, 1.28057, -0.306177) [node name="Floor" type="MeshInstance3D" parent="World"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, 0) mesh = SubResource("BoxMesh_j5fsa") [node name="StaticBody3D" type="StaticBody3D" parent="World/Floor"] [node name="CollisionShape3D" type="CollisionShape3D" parent="World/Floor/StaticBody3D"] shape = SubResource("BoxShape3D_yg2lt") [node name="Players" type="Node3D" parent="."] unique_name_in_owner = true script = ExtResource("16_dp6bj") [node name="UI" parent="." instance=ExtResource("17_43qhq")] [node name="Viewport" type="SubViewportContainer" parent="."] texture_filter = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 stretch = true [node name="SubViewport" type="SubViewport" parent="Viewport"] handle_input_locally = false size = Vector2i(960, 540) render_target_update_mode = 4 [node name="CameraPivot" type="Node3D" parent="Viewport/SubViewport"] [node name="Camera" type="Camera3D" parent="Viewport/SubViewport/CameraPivot" node_paths=PackedStringArray("center")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 20, 20) current = true fov = 30.0 size = 10.0 far = 100.0 script = ExtResource("18_wogcj") center = NodePath("..") follow_speed = 5.0 [node name="PostProcessing" type="MeshInstance3D" parent="Viewport/SubViewport/CameraPivot/Camera"] unique_name_in_owner = true visible = false extra_cull_margin = 16384.0 mesh = SubResource("QuadMesh_7yiqd") [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"] [connection signal="timeout" from="Client/Statistics" to="Client" method="update_statistics"] [connection signal="chat_message_submitted" from="UI" to="Client/Chat" method="send_message"]