You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

151 lines
4.1 KiB

[gd_scene load_steps=15 format=2]
[ext_resource path="res://materials/mat_terrain.tres" type="Material" id=1]
[ext_resource path="res://Player.tscn" type="PackedScene" id=2]
[ext_resource path="res://Hud.tscn" type="PackedScene" id=4]
[ext_resource path="res://scripts/gui/Debug.gd" type="Script" id=6]
[ext_resource path="res://scripts/Terrain.gd" type="Script" id=8]
[ext_resource path="res://materials/mat_water.tres" type="Material" id=10]
[sub_resource type="ProceduralSky" id=1]
sky_top_color = Color( 0.862745, 0.945098, 0.960784, 1 )
sky_horizon_color = Color( 0.356863, 0.611765, 0.8, 1 )
sky_curve = 0.192919
ground_bottom_color = Color( 0.356863, 0.611765, 0.8, 1 )
ground_horizon_color = Color( 0.356863, 0.611765, 0.8, 1 )
sun_color = Color( 0.976471, 0.976471, 0.976471, 1 )
sun_energy = 4.21
texture_size = 3
[sub_resource type="Environment" id=2]
background_mode = 2
background_sky = SubResource( 1 )
auto_exposure_scale = 4.56
dof_blur_far_distance = 11.29
dof_blur_far_transition = 21.37
dof_blur_far_quality = 2
[sub_resource type="OpenSimplexNoise" id=3]
seed = 65921
octaves = 6
period = 207.3
persistence = 0.333
lacunarity = 0.97
[sub_resource type="OpenSimplexNoise" id=4]
seed = 56
period = 119.7
lacunarity = 2.19
[sub_resource type="OpenSimplexNoise" id=5]
seed = 50
octaves = 1
period = 97.5
persistence = 0.668
lacunarity = 0.1
[sub_resource type="StyleBoxFlat" id=6]
bg_color = Color( 0, 0, 0, 0.866667 )
[sub_resource type="DynamicFontData" id=7]
font_path = "res://fonts/Code New Roman b.otf"
[sub_resource type="DynamicFont" id=8]
size = 20
use_mipmaps = true
use_filter = true
font_data = SubResource( 7 )
[node name="Root" type="Spatial"]
[node name="ENV" type="Spatial" parent="."]
[node name="WorldEnvironment" type="WorldEnvironment" parent="ENV"]
environment = SubResource( 2 )
[node name="Terrain" type="Spatial" parent="ENV"]
transform = Transform( 1, 0, 0, 0, 0.999964, 0.00849965, 0, -0.00849965, 0.999964, -0.247406, -0.00608119, 0.737414 )
script = ExtResource( 8 )
__meta__ = {
"_editor_description_": ""
}
land_material = ExtResource( 1 )
water_material = ExtResource( 10 )
noise_large = SubResource( 3 )
noise_medium = SubResource( 4 )
noise_small = SubResource( 5 )
terrain_size = Vector2( 1024, 1024 )
terrain_subdivision = 0.3
terrain_height = 200
land_height_offset = 20.0
[node name="DirectionalLight" type="DirectionalLight" parent="ENV"]
transform = Transform( 0.584972, 0.0075733, -0.811018, 0.432323, 0.843142, 0.3197, 0.686225, -0.537637, 0.48994, 0, 87.136, 0 )
light_color = Color( 0.933333, 0.835294, 0.8, 1 )
light_energy = 0.5
light_indirect_energy = 0.0
light_specular = 0.4
light_bake_mode = 0
shadow_enabled = true
[node name="Player" parent="." instance=ExtResource( 2 )]
gravity = 12.4
max_waddle_speed = 7.0
max_slide_speed = 60.0
swim_accel = 20.0
max_air_speed = 76.0
incline_slide_scalar = -10.23
decline_slide_scalar = 15.355
[node name="Debug" type="CanvasLayer" parent="."]
[node name="Panel" type="Panel" parent="Debug"]
visible = false
margin_right = 178.0
margin_bottom = 54.0
custom_styles/panel = SubResource( 6 )
script = ExtResource( 6 )
__meta__ = {
"_edit_use_anchors_": false
}
playerNode = NodePath("../../Player")
[node name="Velocity" type="Label" parent="Debug/Panel"]
anchor_right = 1.0
anchor_bottom = 0.155
margin_bottom = 16.73
grow_horizontal = 2
size_flags_horizontal = 0
size_flags_vertical = 0
size_flags_stretch_ratio = 0.0
custom_fonts/font = SubResource( 8 )
custom_colors/font_color = Color( 0.964706, 0.964706, 0.964706, 1 )
text = "0 "
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Target_Velocity" type="Label" parent="Debug/Panel"]
anchor_right = 1.0
anchor_bottom = 0.155
margin_top = 28.2843
margin_bottom = 40.9143
grow_horizontal = 2
size_flags_horizontal = 0
size_flags_vertical = 0
size_flags_stretch_ratio = 0.0
custom_fonts/font = SubResource( 8 )
custom_colors/font_color = Color( 0.341176, 0.854902, 0.34902, 1 )
text = "0 "
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Hud" parent="." instance=ExtResource( 4 )]
[connection signal="finished_generation" from="ENV/Terrain" to="Player" method="teleport_player"]
[editable path="Hud"]