- Seeded weather (clear/cloudy/rain/storm, snow and blizzards on cold days and above the snowline), lightning, synthesised rain/wind/thunder sound - Rain/snow particles stopped by roofs; wet ground, settled snow and wind via global shader uniforms - Snap-together wood floor, wall, door, roof and gable with structural support, collapse and X to dismantle - Shelter detection: dry under a roof, warmer and Rested inside with a fire; rain burns an uncovered campfire faster - Bed sets the spawn point and lets you sleep through the night - Trees, boulders and ground pickups regrow; timers saved - Grass cleared under floors; shorter HUD hint - New test_weather_building suite (62 checks) and tests/run_all.sh, which also fails on script errors
48 lines
1.7 KiB
Plaintext
48 lines
1.7 KiB
Plaintext
[gd_scene load_steps=6 format=3 uid="uid://c0world0valheim00"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/world/world.gd" id="0_world"]
|
|
[ext_resource type="Script" path="res://scripts/world/terrain.gd" id="1_terrain"]
|
|
[ext_resource type="Script" path="res://scripts/world/props.gd" id="2_props"]
|
|
[ext_resource type="PackedScene" path="res://scenes/player.tscn" id="3_player"]
|
|
[ext_resource type="Environment" path="res://scenes/default_env.tres" id="4_env"]
|
|
|
|
[sub_resource type="LabelSettings" id="Label_1"]
|
|
font_size = 16
|
|
outline_size = 4
|
|
outline_color = Color(0, 0, 0, 0.7)
|
|
|
|
[node name="World" type="Node3D"]
|
|
script = ExtResource("0_world")
|
|
|
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
|
environment = ExtResource("4_env")
|
|
|
|
[node name="Sun" type="DirectionalLight3D" parent="."]
|
|
transform = Transform3D(0.819, -0.401, 0.41, 0, 0.715, 0.699, -0.574, -0.573, 0.585, 0, 40, 0)
|
|
light_color = Color(1, 0.95, 0.83, 1)
|
|
light_energy = 1.8
|
|
shadow_enabled = true
|
|
shadow_blur = 1.5
|
|
directional_shadow_mode = 2
|
|
directional_shadow_blend_splits = true
|
|
directional_shadow_max_distance = 160.0
|
|
|
|
[node name="Terrain" type="Node3D" parent="."]
|
|
script = ExtResource("1_terrain")
|
|
|
|
[node name="Props" type="Node3D" parent="."]
|
|
script = ExtResource("2_props")
|
|
|
|
[node name="Player" parent="." instance=ExtResource("3_player")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 12, 0)
|
|
|
|
[node name="HUD" type="CanvasLayer" parent="."]
|
|
|
|
[node name="Hint" type="Label" parent="HUD"]
|
|
offset_left = 16.0
|
|
offset_top = 12.0
|
|
offset_right = 600.0
|
|
offset_bottom = 60.0
|
|
text = "E interact · LMB use/place · RMB eat · R rotate · X dismantle · Tab inventory & crafting · Esc menu & controls"
|
|
label_settings = SubResource("Label_1")
|