First commit
This commit is contained in:
32
scenes/Main.tscn
Normal file
32
scenes/Main.tscn
Normal file
@@ -0,0 +1,32 @@
|
||||
[gd_scene load_steps=6 format=3]
|
||||
|
||||
[ext_resource type="PackedScene" path="res://scenes/Player.tscn" id="1_player"]
|
||||
[ext_resource type="PackedScene" path="res://scenes/Submarine.tscn" id="2_sub"]
|
||||
|
||||
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_1"]
|
||||
sky_top_color = Color(0, 0, 0, 1)
|
||||
sky_horizon_color = Color(0, 0, 0, 1)
|
||||
ground_bottom_color = Color(0, 0, 0, 1)
|
||||
ground_horizon_color = Color(0, 0, 0, 1)
|
||||
|
||||
[sub_resource type="Sky" id="Sky_1"]
|
||||
sky_material = SubResource("ProceduralSkyMaterial_1")
|
||||
|
||||
[sub_resource type="Environment" id="Environment_1"]
|
||||
background_mode = 2
|
||||
sky = SubResource("Sky_1")
|
||||
tonemap_mode = 2
|
||||
glow_enabled = true
|
||||
fog_enabled = true
|
||||
fog_light_color = Color(0, 0, 0, 1)
|
||||
fog_density = 0.5
|
||||
|
||||
[node name="Main" type="Node3D"]
|
||||
|
||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
||||
environment = SubResource("Environment_1")
|
||||
|
||||
[node name="Submarine" parent="." instance=ExtResource("2_sub")]
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource("1_player")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, 8)
|
||||
15
scenes/Player.tscn
Normal file
15
scenes/Player.tscn
Normal file
@@ -0,0 +1,15 @@
|
||||
[gd_scene load_steps=3 format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/Player.gd" id="1_script"]
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_player"]
|
||||
|
||||
[node name="Player" type="CharacterBody3D"]
|
||||
script = ExtResource("1_script")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
||||
shape = SubResource("CapsuleShape3D_player")
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.7, 0)
|
||||
39
scenes/Submarine.tscn
Normal file
39
scenes/Submarine.tscn
Normal file
@@ -0,0 +1,39 @@
|
||||
[gd_scene load_steps=3 format=3]
|
||||
|
||||
[ext_resource type="Texture2D" path="res://assets/textures/rusty_metal.png" id="1_rust"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_metal"]
|
||||
albedo_texture = ExtResource("1_rust")
|
||||
uv1_scale = Vector3(5, 5, 5)
|
||||
texture_filter = 0
|
||||
|
||||
[node name="Submarine" type="Node3D"]
|
||||
|
||||
[node name="Hull" type="CSGCombiner3D" parent="."]
|
||||
use_collision = true
|
||||
|
||||
[node name="OuterShell" type="CSGCylinder3D" parent="Hull"]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0)
|
||||
radius = 2.5
|
||||
height = 20.0
|
||||
sides = 12
|
||||
material = SubResource("StandardMaterial3D_metal")
|
||||
|
||||
[node name="InnerVoid" type="CSGCylinder3D" parent="Hull"]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0)
|
||||
operation = 2
|
||||
radius = 2.3
|
||||
height = 19.0
|
||||
sides = 12
|
||||
material = SubResource("StandardMaterial3D_metal")
|
||||
|
||||
[node name="Floor" type="CSGBox3D" parent="Hull"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.8, 0)
|
||||
size = Vector3(4, 1, 18)
|
||||
material = SubResource("StandardMaterial3D_metal")
|
||||
|
||||
[node name="EmergencyLight" type="OmniLight3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5, 5)
|
||||
light_color = Color(1, 0, 0, 1)
|
||||
light_energy = 2.0
|
||||
omni_range = 8.0
|
||||
Reference in New Issue
Block a user