93 lines
3.9 KiB
Plaintext
93 lines
3.9 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://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"]
|
|
[ext_resource type="Script" uid="uid://bxk0exu40a25x" path="res://scripts/player_controller.gd" id="6_272bh"]
|
|
|
|
[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)
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_j2yfa"]
|
|
emission_enabled = true
|
|
emission = Color(1, 0, 0, 1)
|
|
emission_energy_multiplier = 8.57
|
|
|
|
[sub_resource type="SphereMesh" id="SphereMesh_byv2x"]
|
|
material = SubResource("StandardMaterial3D_j2yfa")
|
|
radius = 0.3
|
|
height = 0.6
|
|
|
|
[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="Boat" 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("cam") groups=["shift_with_origin"]]
|
|
physics_interpolation_mode = 2
|
|
transform = Transform3D(1, 0, 0, 0, 0.9396926, 0.34202012, 0, -0.34202012, 0.9396926, 0, 0, 0)
|
|
script = ExtResource("4_1bvp3")
|
|
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("world") instance=ExtResource("4_272bh")]
|
|
world = NodePath("../WorldManager")
|
|
|
|
[node name="WorldManager" type="Node" parent="." unique_id=1879897241 node_paths=PackedStringArray("ocean")]
|
|
script = ExtResource("6_7mycd")
|
|
ocean = NodePath("../Ocean")
|
|
shift_threshold = 50.0
|
|
|
|
[node name="PlayerController" type="Node" parent="." unique_id=2011077099 node_paths=PackedStringArray("current_controlled", "world_manager", "camera_rig", "hud", "aim_marker")]
|
|
script = ExtResource("6_272bh")
|
|
current_controlled = NodePath("../Boat")
|
|
world_manager = NodePath("../WorldManager")
|
|
camera_rig = NodePath("../CameraRig")
|
|
hud = NodePath("../Hud")
|
|
aim_marker = NodePath("../AimMarker")
|
|
|
|
[node name="AimMarker" type="MeshInstance3D" parent="." unique_id=2108290425]
|
|
physics_interpolation_mode = 2
|
|
mesh = SubResource("SphereMesh_byv2x")
|