- Health, stamina, hunger, warmth and wet with HUD bars, status tags and clock - 20-minute day/night cycle with moon, stars and lit clouds - Campfire fuel (2 min start, 15 min max), heat radius, cooking needs a lit fire - Berry bushes (regrow 10 min), mushrooms, roasted mushroom, torch - Stamina costs for sprint, jump and harvest hits - Death respawns at island start and leaves a grave bag - Saves include stats, time of day, fire fuel, regrowth timers and graves - New test_survival_stats suite; tests fail if a script error aborts them
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 = "WASD move · Shift sprint · Space jump · E interact · LMB use/place · RMB eat · R rotate · 1-8 hotbar · Tab inventory & crafting · ESC menu"
|
|
label_settings = SubResource("Label_1")
|