M0 scaffold: Godot 4 survival game skeleton + architecture/addon-SDK docs
This commit is contained in:
50
scenes/world.tscn
Normal file
50
scenes/world.tscn
Normal file
@@ -0,0 +1,50 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://c0world0valheim00"]
|
||||
|
||||
[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"]
|
||||
|
||||
[sub_resource type="Environment" id="Env_inline"]
|
||||
background_mode = 2
|
||||
ambient_light_source = 3
|
||||
ambient_light_color = Color(0.6, 0.66, 0.72, 1)
|
||||
ambient_light_energy = 0.4
|
||||
tonemap_mode = 3
|
||||
fog_enabled = true
|
||||
fog_light_color = Color(0.72, 0.78, 0.82, 1)
|
||||
fog_density = 0.012
|
||||
|
||||
[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"]
|
||||
|
||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
||||
environment = SubResource("Env_inline")
|
||||
|
||||
[node name="Sun" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(0.86, -0.35, 0.37, 0, 0.72, 0.69, -0.51, -0.6, 0.62, 0, 40, 0)
|
||||
light_color = Color(1, 0.96, 0.86, 1)
|
||||
light_energy = 1.2
|
||||
shadow_enabled = true
|
||||
|
||||
[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 · Mouse look · Shift sprint · Space jump · ESC free cursor"
|
||||
label_settings = SubResource("Label_1")
|
||||
Reference in New Issue
Block a user