Improved third person camera

This commit is contained in:
2024-02-21 20:15:11 +01:00
parent 4e632608e1
commit ffe3142937
10 changed files with 137 additions and 134 deletions

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=34 format=3 uid="uid://b40y7iuskv1ar"]
[gd_scene load_steps=35 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"]
@ -18,6 +18,7 @@
[ext_resource type="Script" path="res://world/generator/Generator.gd" id="15_25nmg"]
[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="Script" path="res://world/Terrain.gd" id="16_icmfi"]
[ext_resource type="PackedScene" uid="uid://dagn5bf7ou3sd" path="res://ui/UI.tscn" id="17_43qhq"]
[ext_resource type="FastNoiseLite" uid="uid://d3f4lk8q04haa" path="res://world/trees/TreeNoise.tres" id="19_ctwmw"]
[ext_resource type="Script" path="res://world/generator/TreeGenerator.gd" id="19_kcwnm"]
@ -32,13 +33,13 @@
[ext_resource type="Terrain3DMaterial" uid="uid://nhcs8ekjedbb" path="res://world/terrain/Material.tres" id="31_of12o"]
[ext_resource type="Terrain3DTextureList" uid="uid://cpq0eq7wr08kf" path="res://world/terrain/TextureList.tres" id="32_d5ywf"]
[sub_resource type="FastNoiseLite" id="FastNoiseLite_xy4ll"]
seed = 300
[sub_resource type="FastNoiseLite" id="FastNoiseLite_yp2fx"]
seed = 100
frequency = 0.1
[sub_resource type="FastNoiseLite" id="FastNoiseLite_xy4ll"]
seed = 300
[node name="Main" type="Node" node_paths=PackedStringArray("ui")]
script = ExtResource("1_cw3ws")
ui = NodePath("UI")
@ -108,10 +109,22 @@ autostart = true
[node name="World" type="Node3D" parent="."]
[node name="Terrain3D" type="Terrain3D" parent="World"]
[node name="Terrain" type="Terrain3D" parent="World"]
storage = ExtResource("30_bvq0o")
material = ExtResource("31_of12o")
texture_list = ExtResource("32_d5ywf")
script = ExtResource("16_icmfi")
[node name="Enemies" type="Node3D" parent="World"]
visible = false
script = ExtResource("15_25nmg")
scene = ExtResource("15_hgl78")
noise = SubResource("FastNoiseLite_yp2fx")
size_x = 100.0
size_z = 100.0
step = 2.0
density = 0.3
tilt = 0.15
[node name="Houses" type="Node3D" parent="World"]
visible = false
@ -139,18 +152,7 @@ scale_min = 0.6
scale_max = 1.1
tilt = 0.15
[node name="Enemies" type="Node3D" parent="World"]
visible = false
script = ExtResource("15_25nmg")
scene = ExtResource("15_hgl78")
noise = SubResource("FastNoiseLite_yp2fx")
size_x = 100.0
size_z = 100.0
step = 2.0
density = 0.3
tilt = 0.15
[node name="Follow" parent="World" instance=ExtResource("12_aljdh")]
[node name="Camera" parent="World" instance=ExtResource("12_aljdh")]
[node name="Environment" type="WorldEnvironment" parent="World"]
environment = ExtResource("14_kuej8")