[gd_scene format=3 uid="uid://jven27ktracb"] [ext_resource type="Material" uid="uid://6p5bg1nyso6d" path="res://materials/stylized_water.tres" id="1_water_material"] [ext_resource type="Script" uid="uid://co5xetl8amg4j" path="res://scripts/ocean.gd" id="2_ocean_script"] [ext_resource type="Script" uid="uid://c0n1x050jvspr" path="res://scripts/boat.gd" id="3_1bvp3"] [ext_resource type="Script" uid="uid://46jiwugeccqg" path="res://scripts/camera_rig.gd" id="4_1bvp3"] [ext_resource type="Script" uid="uid://b500yf6hema7c" path="res://scripts/stats_label.gd" id="5_lquwl"] [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="PlaneMesh" id="PlaneMesh_ocean"] size = Vector2(200, 200) subdivide_width = 200 subdivide_depth = 200 [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) [sub_resource type="BoxMesh" id="BoxMesh_crate"] [sub_resource type="StandardMaterial3D" id="Material_crate"] albedo_color = Color(0.72, 0.53, 0.32, 1) roughness = 0.9 [sub_resource type="BoxShape3D" id="BoxShape_crate"] [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" type="MeshInstance3D" parent="." unique_id=312504233 groups=["follow_focus", "ocean"]] material_override = ExtResource("1_water_material") mesh = SubResource("PlaneMesh_ocean") script = ExtResource("2_ocean_script") sea_height = 1.0 sea_choppy = 8.0 metadata/follow_step = 1.0 [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="Crate" type="RigidBody3D" parent="." unique_id=1409256205 groups=["shift_with_origin"]] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, 0) mass = 5.0 script = ExtResource("3_1bvp3") buoyancy = 1.5 full_force_depth = 0.8 probe_extents = Vector3(0.35, 0, 2.25) [node name="Mesh" type="MeshInstance3D" parent="Crate" unique_id=1406951740] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 5, 0, 0, 0) mesh = SubResource("BoxMesh_crate") surface_material_override/0 = SubResource("Material_crate") [node name="CollisionShape3D" type="CollisionShape3D" parent="Crate" unique_id=1190807384] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 5, 0, 0, 0) shape = SubResource("BoxShape_crate") [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("../Crate") 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="CanvasLayer" type="CanvasLayer" parent="." unique_id=1275537335] [node name="StatsLabel" type="Label" parent="CanvasLayer" unique_id=15552030 node_paths=PackedStringArray("boat", "world")] anchors_preset = 3 anchor_left = 1.0 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 offset_left = -76.0 offset_top = -52.0 grow_horizontal = 0 grow_vertical = 0 script = ExtResource("5_lquwl") boat = NodePath("../../Crate") world = NodePath("../../WorldManager") [node name="WorldManager" type="Node" parent="." unique_id=1879897241 node_paths=PackedStringArray("focus", "ocean")] script = ExtResource("6_7mycd") focus = NodePath("../Crate") ocean = NodePath("../Ocean") shift_threshold = 50.0