Files
boatgame/main.tscn
T
2026-07-07 10:01:56 +02:00

72 lines
3.1 KiB
Plaintext

[gd_scene format=3 uid="uid://jven27ktracb"]
[ext_resource type="PackedScene" uid="uid://c6n3dg530t8oc" path="res://ocean.tscn" id="1_lquwl"]
[ext_resource type="PackedScene" uid="uid://cieiwihia8t2w" path="res://player_boat.tscn" id="2_7mycd"]
[ext_resource type="Script" uid="uid://46jiwugeccqg" path="res://scripts/camera_rig.gd" id="4_1bvp3"]
[ext_resource type="PackedScene" uid="uid://conoykdb1g38n" path="res://hud.tscn" id="4_272bh"]
[ext_resource type="Script" uid="uid://dpohf1tg5e2gs" path="res://scripts/world_manager.gd" id="6_7mycd"]
[sub_resource type="ProceduralSkyMaterial" id="SkyMaterial_1"]
sky_horizon_color = Color(0.66, 0.67, 0.68, 1)
ground_horizon_color = Color(0.66, 0.67, 0.68, 1)
[sub_resource type="Sky" id="Sky_1"]
sky_material = SubResource("SkyMaterial_1")
[sub_resource type="Environment" id="Environment_1"]
background_mode = 2
sky = SubResource("Sky_1")
tonemap_mode = 2
[sub_resource type="BoxMesh" id="BoxMesh_seabed"]
size = Vector3(200, 1, 200)
[sub_resource type="StandardMaterial3D" id="Material_seabed"]
albedo_color = Color(0.76, 0.7, 0.5, 1)
[sub_resource type="BoxShape3D" id="BoxShape_seabed"]
size = Vector3(200, 1, 200)
[node name="Main" type="Node3D" unique_id=1242452333]
[node name="WorldEnvironment" type="WorldEnvironment" parent="." unique_id=431656791]
environment = SubResource("Environment_1")
[node name="Sun" type="DirectionalLight3D" parent="." unique_id=144458330]
transform = Transform3D(1, 0, 0, 0, 0.642788, 0.766044, 0, -0.766044, 0.642788, 0, 20, 0)
shadow_enabled = true
[node name="Ocean" parent="." unique_id=521355215 instance=ExtResource("1_lquwl")]
[node name="Seabed" type="StaticBody3D" parent="." unique_id=1919476025 groups=["follow_focus"]]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -4.5, 0)
[node name="Mesh" type="MeshInstance3D" parent="Seabed" unique_id=1209469388]
mesh = SubResource("BoxMesh_seabed")
surface_material_override/0 = SubResource("Material_seabed")
[node name="CollisionShape3D" type="CollisionShape3D" parent="Seabed" unique_id=111957760]
shape = SubResource("BoxShape_seabed")
[node name="PlayerBoat" parent="." unique_id=1387061778 instance=ExtResource("2_7mycd")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, 0)
[node name="CameraRig" type="Node3D" parent="." unique_id=2139913829 node_paths=PackedStringArray("target", "cam") groups=["shift_with_origin"]]
transform = Transform3D(1, 0, 0, 0, 0.9396926, 0.34202012, 0, -0.34202012, 0.9396926, 0, 0, 0)
script = ExtResource("4_1bvp3")
target = NodePath("../PlayerBoat")
cam = NodePath("PlayerCamera")
[node name="PlayerCamera" type="Camera3D" parent="CameraRig" unique_id=553919400]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 8)
[node name="Hud" parent="." unique_id=167273188 node_paths=PackedStringArray("boat", "world") instance=ExtResource("4_272bh")]
boat = NodePath("../PlayerBoat")
world = NodePath("../WorldManager")
[node name="WorldManager" type="Node" parent="." unique_id=1879897241 node_paths=PackedStringArray("focus", "ocean")]
script = ExtResource("6_7mycd")
focus = NodePath("../PlayerBoat")
ocean = NodePath("../Ocean")
shift_threshold = 50.0