2024-02-03 23:03:25 +00:00
|
|
|
[gd_scene load_steps=25 format=3 uid="uid://b40y7iuskv1ar"]
|
2024-01-23 23:09:50 +00:00
|
|
|
|
2024-01-29 11:32:06 +00:00
|
|
|
[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"]
|
2024-01-29 22:16:06 +00:00
|
|
|
[ext_resource type="Script" path="res://network/Logout.gd" id="5_au5w3"]
|
2024-01-29 11:32:06 +00:00
|
|
|
[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"]
|
2024-02-03 23:03:25 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://hnn0n1xc2qt7" path="res://assets/tree/Tree.blend" id="14_7jtdl"]
|
2024-02-02 19:12:14 +00:00
|
|
|
[ext_resource type="CameraAttributesPractical" uid="uid://b835orxyqq6w5" path="res://world/CameraPractical.tres" id="14_e2m00"]
|
2024-01-29 11:32:06 +00:00
|
|
|
[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"]
|
2024-02-03 23:03:25 +00:00
|
|
|
[ext_resource type="Material" uid="uid://bdsblfaxbipaa" path="res://grass/grass_material.tres" id="18_tja64"]
|
2024-01-29 11:32:06 +00:00
|
|
|
[ext_resource type="Script" path="res://camera/Camera.gd" id="18_wogcj"]
|
2024-02-03 23:03:25 +00:00
|
|
|
[ext_resource type="MultiMesh" uid="uid://dog5aq5n2q025" path="res://assets/grass/grass.multimesh" id="19_ae26a"]
|
2024-01-16 22:01:16 +00:00
|
|
|
|
2024-02-03 23:03:25 +00:00
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_he5c5"]
|
|
|
|
albedo_color = Color(0.0156863, 0.654902, 0.501961, 1)
|
2024-01-28 21:08:08 +00:00
|
|
|
|
2024-02-03 23:03:25 +00:00
|
|
|
[sub_resource type="PlaneMesh" id="PlaneMesh_lb6xk"]
|
|
|
|
material = SubResource("StandardMaterial3D_he5c5")
|
|
|
|
size = Vector2(25, 25)
|
2024-01-28 21:08:08 +00:00
|
|
|
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_yg2lt"]
|
|
|
|
size = Vector3(100, 1, 100)
|
|
|
|
|
2024-01-23 23:09:50 +00:00
|
|
|
[node name="Main" type="Node"]
|
2024-01-29 11:32:06 +00:00
|
|
|
script = ExtResource("1_cw3ws")
|
2024-01-15 16:08:26 +00:00
|
|
|
|
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
|
2024-01-29 22:16:06 +00:00
|
|
|
process_mode = 3
|
2024-01-29 11:32:06 +00:00
|
|
|
script = ExtResource("2_8hxcx")
|
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
|
2024-01-29 11:32:06 +00:00
|
|
|
script = ExtResource("3_d6qf1")
|
2024-01-25 11:10:29 +00:00
|
|
|
packet_type = 1
|
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-26 16:14:20 +00:00
|
|
|
unique_name_in_owner = true
|
2024-01-29 11:32:06 +00:00
|
|
|
script = ExtResource("4_fsx7a")
|
2024-01-25 11:10:29 +00:00
|
|
|
packet_type = 2
|
2024-01-16 22:01:16 +00:00
|
|
|
|
2024-01-20 21:18:58 +00:00
|
|
|
[node name="Timer" type="Timer" parent="Client/Login"]
|
2024-01-24 19:57:31 +00:00
|
|
|
wait_time = 5.0
|
2024-01-16 22:01:16 +00:00
|
|
|
autostart = true
|
2024-01-15 16:08:26 +00:00
|
|
|
|
2024-01-29 22:16:06 +00:00
|
|
|
[node name="Logout" type="Node" parent="Client"]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
script = ExtResource("5_au5w3")
|
|
|
|
packet_type = 3
|
|
|
|
|
2024-01-26 11:50:46 +00:00
|
|
|
[node name="PlayerAdd" type="Node" parent="Client"]
|
2024-01-26 21:45:26 +00:00
|
|
|
unique_name_in_owner = true
|
2024-01-29 11:32:06 +00:00
|
|
|
script = ExtResource("5_376ik")
|
|
|
|
player_scene = ExtResource("6_cdj8w")
|
2024-01-25 11:10:29 +00:00
|
|
|
packet_type = 10
|
2024-01-20 21:18:58 +00:00
|
|
|
|
2024-01-28 15:47:41 +00:00
|
|
|
[node name="PlayerRemove" type="Node" parent="Client"]
|
2024-01-29 11:32:06 +00:00
|
|
|
script = ExtResource("7_2r42o")
|
2024-01-28 15:47:41 +00:00
|
|
|
packet_type = 11
|
|
|
|
|
2024-01-26 16:14:20 +00:00
|
|
|
[node name="PlayerMove" type="Node" parent="Client"]
|
2024-01-29 11:32:06 +00:00
|
|
|
script = ExtResource("8_ke1yy")
|
2024-01-26 16:14:20 +00:00
|
|
|
packet_type = 12
|
|
|
|
|
2024-01-26 21:45:26 +00:00
|
|
|
[node name="PlayerJump" type="Node" parent="Client"]
|
2024-01-29 11:32:06 +00:00
|
|
|
script = ExtResource("9_o8sk8")
|
2024-01-26 21:45:26 +00:00
|
|
|
packet_type = 13
|
|
|
|
|
2024-01-28 21:08:08 +00:00
|
|
|
[node name="Chat" type="Node" parent="Client"]
|
|
|
|
unique_name_in_owner = true
|
2024-01-29 11:32:06 +00:00
|
|
|
script = ExtResource("10_y3len")
|
2024-01-28 21:08:08 +00:00
|
|
|
packet_type = 20
|
|
|
|
|
2024-01-26 18:00:59 +00:00
|
|
|
[node name="Statistics" type="Timer" parent="Client"]
|
|
|
|
autostart = true
|
|
|
|
|
2024-01-24 19:57:31 +00:00
|
|
|
[node name="World" type="Node3D" parent="."]
|
2024-01-20 21:18:58 +00:00
|
|
|
|
2024-02-05 09:36:26 +00:00
|
|
|
[node name="Follow" type="Node3D" parent="World"]
|
2024-02-02 19:12:14 +00:00
|
|
|
|
2024-02-05 09:36:26 +00:00
|
|
|
[node name="Pivot" type="Node3D" parent="World/Follow"]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
|
|
|
|
|
|
|
[node name="Camera" type="Camera3D" parent="World/Follow/Pivot" node_paths=PackedStringArray("follow", "pivot")]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3.5, 7.5)
|
2024-02-02 19:12:14 +00:00
|
|
|
current = true
|
|
|
|
fov = 30.0
|
|
|
|
size = 10.0
|
2024-02-05 09:36:26 +00:00
|
|
|
far = 1000.0
|
2024-02-02 19:12:14 +00:00
|
|
|
script = ExtResource("18_wogcj")
|
2024-02-05 09:36:26 +00:00
|
|
|
follow = NodePath("../..")
|
|
|
|
pivot = NodePath("..")
|
2024-02-02 19:12:14 +00:00
|
|
|
follow_speed = 5.0
|
|
|
|
|
2024-01-23 23:09:50 +00:00
|
|
|
[node name="Sun" type="DirectionalLight3D" parent="World"]
|
2024-02-02 19:12:14 +00:00
|
|
|
transform = Transform3D(0.984808, 0.122788, -0.122788, 0, 0.707107, 0.707107, 0.173648, -0.696364, 0.696364, 0, 3, 0)
|
2024-02-03 23:03:25 +00:00
|
|
|
light_energy = 0.1
|
2024-01-23 23:09:50 +00:00
|
|
|
shadow_enabled = true
|
2024-01-29 11:32:06 +00:00
|
|
|
script = ExtResource("11_4jb08")
|
2024-01-20 21:18:58 +00:00
|
|
|
|
2024-01-23 23:09:50 +00:00
|
|
|
[node name="Environment" type="WorldEnvironment" parent="World"]
|
2024-01-29 11:32:06 +00:00
|
|
|
environment = ExtResource("12_cscto")
|
2024-02-02 19:12:14 +00:00
|
|
|
camera_attributes = ExtResource("14_e2m00")
|
2024-01-20 21:18:58 +00:00
|
|
|
|
2024-01-24 19:57:31 +00:00
|
|
|
[node name="Trees" type="Node3D" parent="World"]
|
|
|
|
|
2024-01-29 11:32:06 +00:00
|
|
|
[node name="Tree" parent="World/Trees" instance=ExtResource("14_7jtdl")]
|
2024-01-25 23:29:05 +00:00
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.11323, 0, -7.57074)
|
2024-01-24 19:57:31 +00:00
|
|
|
|
2024-01-29 11:32:06 +00:00
|
|
|
[node name="Tree2" parent="World/Trees" instance=ExtResource("14_7jtdl")]
|
2024-01-25 23:29:05 +00:00
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.11323, 0, 7.80548)
|
2024-01-24 19:57:31 +00:00
|
|
|
|
|
|
|
[node name="Enemies" type="Node3D" parent="World"]
|
|
|
|
|
2024-01-29 11:32:06 +00:00
|
|
|
[node name="Slime" parent="World/Enemies" instance=ExtResource("15_hgl78")]
|
2024-01-24 19:57:31 +00:00
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.53558, 1.28057, -3.79687)
|
|
|
|
|
2024-01-29 11:32:06 +00:00
|
|
|
[node name="Slime2" parent="World/Enemies" instance=ExtResource("15_hgl78")]
|
2024-01-24 19:57:31 +00:00
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.00829, 1.28057, -1.95247)
|
|
|
|
|
2024-01-29 11:32:06 +00:00
|
|
|
[node name="Slime3" parent="World/Enemies" instance=ExtResource("15_hgl78")]
|
2024-01-24 19:57:31 +00:00
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.53558, 1.28057, -0.306177)
|
|
|
|
|
2024-01-28 21:08:08 +00:00
|
|
|
[node name="Floor" type="MeshInstance3D" parent="World"]
|
2024-02-03 23:03:25 +00:00
|
|
|
mesh = SubResource("PlaneMesh_lb6xk")
|
2024-01-28 21:08:08 +00:00
|
|
|
|
|
|
|
[node name="StaticBody3D" type="StaticBody3D" parent="World/Floor"]
|
2024-02-03 23:03:25 +00:00
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, 0)
|
2024-01-28 21:08:08 +00:00
|
|
|
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="World/Floor/StaticBody3D"]
|
|
|
|
shape = SubResource("BoxShape3D_yg2lt")
|
|
|
|
|
2024-02-03 23:03:25 +00:00
|
|
|
[node name="Grass" type="MultiMeshInstance3D" parent="World"]
|
|
|
|
material_override = ExtResource("18_tja64")
|
|
|
|
cast_shadow = 0
|
|
|
|
multimesh = ExtResource("19_ae26a")
|
|
|
|
|
2024-01-26 16:14:20 +00:00
|
|
|
[node name="Players" type="Node3D" parent="."]
|
2024-01-25 11:10:29 +00:00
|
|
|
unique_name_in_owner = true
|
2024-01-29 11:32:06 +00:00
|
|
|
script = ExtResource("16_dp6bj")
|
2024-01-15 23:22:14 +00:00
|
|
|
|
2024-01-29 11:32:06 +00:00
|
|
|
[node name="UI" parent="." instance=ExtResource("17_43qhq")]
|
2024-01-29 22:16:06 +00:00
|
|
|
process_mode = 3
|
2024-01-15 16:08:26 +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"]
|
2024-01-26 18:00:59 +00:00
|
|
|
[connection signal="timeout" from="Client/Statistics" to="Client" method="update_statistics"]
|
2024-01-28 21:08:08 +00:00
|
|
|
[connection signal="chat_message_submitted" from="UI" to="Client/Chat" method="send_message"]
|