generated from krampus/template-godot4
Navigation tweaks
This commit is contained in:
parent
7de318a613
commit
efc62c16c1
43
levels/ghost_ship/debug_environment.tres
Normal file
43
levels/ghost_ship/debug_environment.tres
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
[gd_resource type="Environment" load_steps=4 format=3 uid="uid://c6xficnihju5t"]
|
||||||
|
|
||||||
|
[ext_resource type="Shader" uid="uid://ckw76htb0608r" path="res://levels/ghost_ship/starfield.gdshader" id="1_2mob3"]
|
||||||
|
|
||||||
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_2mob3"]
|
||||||
|
shader = ExtResource("1_2mob3")
|
||||||
|
shader_parameter/sky_color = Color(0.05, 0.065, 0.1, 1)
|
||||||
|
shader_parameter/star_base_color = Color(0.926333, 1, 0.74, 1)
|
||||||
|
shader_parameter/star_hue_offset = 0.434
|
||||||
|
shader_parameter/star_intensity = 0.05
|
||||||
|
shader_parameter/star_twinkle_speed = 0.1
|
||||||
|
shader_parameter/star_twinkle_intensity = 0.2
|
||||||
|
shader_parameter/layer_scale = 30.0
|
||||||
|
shader_parameter/layer_scale_step = 10.0
|
||||||
|
shader_parameter/layers_count = 1
|
||||||
|
|
||||||
|
[sub_resource type="Sky" id="Sky_0jyik"]
|
||||||
|
sky_material = SubResource("ShaderMaterial_2mob3")
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
background_mode = 2
|
||||||
|
sky = SubResource("Sky_0jyik")
|
||||||
|
ambient_light_source = 2
|
||||||
|
ambient_light_color = Color(0.370364, 0.370364, 0.370364, 1)
|
||||||
|
tonemap_mode = 4
|
||||||
|
tonemap_white = 8.0
|
||||||
|
ssao_enabled = true
|
||||||
|
ssao_intensity = 2.5
|
||||||
|
ssil_radius = 0.4
|
||||||
|
sdfgi_cascades = 7
|
||||||
|
sdfgi_max_distance = 1638.4
|
||||||
|
glow_strength = 0.7
|
||||||
|
glow_blend_mode = 0
|
||||||
|
fog_light_color = Color(0, 0, 0, 1)
|
||||||
|
fog_density = 0.2
|
||||||
|
fog_depth_begin = 0.0
|
||||||
|
volumetric_fog_density = 0.1
|
||||||
|
volumetric_fog_albedo = Color(0.101961, 0.0666667, 0, 1)
|
||||||
|
volumetric_fog_emission = Color(0.101961, 0.0156863, 0, 1)
|
||||||
|
volumetric_fog_emission_energy = 0.3
|
||||||
|
volumetric_fog_sky_affect = 0.0
|
||||||
|
adjustment_contrast = 1.1
|
||||||
|
adjustment_saturation = 1.3
|
@ -1,7 +1,7 @@
|
|||||||
[gd_scene load_steps=21 format=3 uid="uid://bov4ok76woyc"]
|
[gd_scene load_steps=21 format=3 uid="uid://bov4ok76woyc"]
|
||||||
|
|
||||||
[ext_resource type="PackedScene" uid="uid://crydi5cjgfwe5" path="res://levels/ghost_ship/ghost_ship_level.tscn" id="1_aj2m7"]
|
[ext_resource type="PackedScene" uid="uid://crydi5cjgfwe5" path="res://levels/ghost_ship/ghost_ship_level.tscn" id="1_aj2m7"]
|
||||||
[ext_resource type="Environment" uid="uid://bkvij3ljl5ox3" path="res://levels/ghost_ship/environment_3.tres" id="1_wwgrl"]
|
[ext_resource type="Environment" uid="uid://c6xficnihju5t" path="res://levels/ghost_ship/debug_environment.tres" id="1_h081y"]
|
||||||
[ext_resource type="PackedScene" uid="uid://bwe2jdmvinhqd" path="res://src/player/player.tscn" id="2_0ef5p"]
|
[ext_resource type="PackedScene" uid="uid://bwe2jdmvinhqd" path="res://src/player/player.tscn" id="2_0ef5p"]
|
||||||
[ext_resource type="PackedScene" uid="uid://d1kacn4b60ucy" path="res://src/ui/post_processing.tscn" id="3_o7mxe"]
|
[ext_resource type="PackedScene" uid="uid://d1kacn4b60ucy" path="res://src/ui/post_processing.tscn" id="3_o7mxe"]
|
||||||
[ext_resource type="AudioStream" uid="uid://dx4d8a3mgpws" path="res://assets/sfx/ambient/drone_loop.wav" id="5_ejh2c"]
|
[ext_resource type="AudioStream" uid="uid://dx4d8a3mgpws" path="res://assets/sfx/ambient/drone_loop.wav" id="5_ejh2c"]
|
||||||
@ -44,7 +44,7 @@ stream_10/weight = 0.2
|
|||||||
[node name="GhostShip" type="Node3D"]
|
[node name="GhostShip" type="Node3D"]
|
||||||
|
|
||||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
||||||
environment = ExtResource("1_wwgrl")
|
environment = ExtResource("1_h081y")
|
||||||
|
|
||||||
[node name="GhostShipLevel" parent="." instance=ExtResource("1_aj2m7")]
|
[node name="GhostShipLevel" parent="." instance=ExtResource("1_aj2m7")]
|
||||||
|
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1,5 +1,13 @@
|
|||||||
extends Node3D
|
extends Node3D
|
||||||
|
|
||||||
|
@export var debug_open: bool:
|
||||||
|
set(value):
|
||||||
|
open()
|
||||||
|
|
||||||
|
@export var debug_close: bool:
|
||||||
|
set(value):
|
||||||
|
close()
|
||||||
|
|
||||||
@onready var animation: AnimationPlayer = $AnimationPlayer
|
@onready var animation: AnimationPlayer = $AnimationPlayer
|
||||||
@onready var dust_animation: AnimationPlayer = %DustAnimation
|
@onready var dust_animation: AnimationPlayer = %DustAnimation
|
||||||
@onready var open_sfx: AudioStreamPlayer3D = %OpenSFX
|
@onready var open_sfx: AudioStreamPlayer3D = %OpenSFX
|
||||||
|
@ -82,10 +82,10 @@ data = PackedVector3Array(-1.4063, 0.0938, 0.14, -1.4063, 2.9063, -0.14, -1.4063
|
|||||||
|
|
||||||
[sub_resource type="PrismMesh" id="PrismMesh_w7oba"]
|
[sub_resource type="PrismMesh" id="PrismMesh_w7oba"]
|
||||||
left_to_right = 1.0
|
left_to_right = 1.0
|
||||||
size = Vector3(0.2, 0.2, 3)
|
size = Vector3(0.6, 0.2, 3)
|
||||||
|
|
||||||
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_hx0vd"]
|
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_bso71"]
|
||||||
data = PackedVector3Array(0.1, 0.1, 1.5, 0.1, -0.1, 1.5, -0.1, -0.1, 1.5, 0.1, 0.1, -1.5, -0.1, -0.1, -1.5, 0.1, -0.1, -1.5, 0.1, 0.1, 1.5, 0.1, 0.1, -1.5, 0.1, -0.1, 1.5, 0.1, 0.1, -1.5, 0.1, -0.1, -1.5, 0.1, -0.1, 1.5, 0.1, 0.1, -1.5, 0.1, 0.1, 1.5, -0.1, -0.1, -1.5, 0.1, 0.1, 1.5, -0.1, -0.1, 1.5, -0.1, -0.1, -1.5, -0.1, -0.1, 1.5, 0.1, -0.1, 1.5, -0.1, -0.1, -1.5, 0.1, -0.1, 1.5, 0.1, -0.1, -1.5, -0.1, -0.1, -1.5)
|
data = PackedVector3Array(0.3, 0.1, 1.5, 0.3, -0.1, 1.5, -0.3, -0.1, 1.5, 0.3, 0.1, -1.5, -0.3, -0.1, -1.5, 0.3, -0.1, -1.5, 0.3, 0.1, 1.5, 0.3, 0.1, -1.5, 0.3, -0.1, 1.5, 0.3, 0.1, -1.5, 0.3, -0.1, -1.5, 0.3, -0.1, 1.5, 0.3, 0.1, -1.5, 0.3, 0.1, 1.5, -0.3, -0.1, -1.5, 0.3, 0.1, 1.5, -0.3, -0.1, 1.5, -0.3, -0.1, -1.5, -0.3, -0.1, 1.5, 0.3, -0.1, 1.5, -0.3, -0.1, -1.5, 0.3, -0.1, 1.5, 0.3, -0.1, -1.5, -0.3, -0.1, -1.5)
|
||||||
|
|
||||||
[sub_resource type="Animation" id="Animation_w7oba"]
|
[sub_resource type="Animation" id="Animation_w7oba"]
|
||||||
length = 0.001
|
length = 0.001
|
||||||
@ -358,17 +358,17 @@ volume_db = -10.0
|
|||||||
[node name="Ramp" type="StaticBody3D" parent="." index="4" groups=["MetalMaterial"]]
|
[node name="Ramp" type="StaticBody3D" parent="." index="4" groups=["MetalMaterial"]]
|
||||||
|
|
||||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="Ramp" index="0"]
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Ramp" index="0"]
|
||||||
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0.1, 0.325)
|
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0.1, 0.525)
|
||||||
visible = false
|
visible = false
|
||||||
mesh = SubResource("PrismMesh_w7oba")
|
mesh = SubResource("PrismMesh_w7oba")
|
||||||
|
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Ramp" index="1"]
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Ramp" index="1"]
|
||||||
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0.1, 0.325)
|
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0.1, 0.525)
|
||||||
shape = SubResource("ConcavePolygonShape3D_hx0vd")
|
shape = SubResource("ConcavePolygonShape3D_bso71")
|
||||||
|
|
||||||
[node name="CollisionShape3D2" type="CollisionShape3D" parent="Ramp" index="2"]
|
[node name="CollisionShape3D2" type="CollisionShape3D" parent="Ramp" index="2"]
|
||||||
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 0, 0.1, -0.325)
|
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 0, 0.1, -0.525)
|
||||||
shape = SubResource("ConcavePolygonShape3D_hx0vd")
|
shape = SubResource("ConcavePolygonShape3D_bso71")
|
||||||
|
|
||||||
[node name="Dust" type="Node3D" parent="." index="5"]
|
[node name="Dust" type="Node3D" parent="." index="5"]
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
@tool
|
||||||
class_name ControlBinding extends CheckerContainer
|
class_name ControlBinding extends CheckerContainer
|
||||||
## Input for rebinding an action.
|
## Input for rebinding an action.
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@ func path_shorter_than(target: Vector3, limit: float) -> bool:
|
|||||||
func _physics_process(delta: float) -> void:
|
func _physics_process(delta: float) -> void:
|
||||||
var motion := Vector3.ZERO
|
var motion := Vector3.ZERO
|
||||||
|
|
||||||
if pathfinding:
|
if pathfinding and not nav_agent.is_navigation_finished():
|
||||||
var path_pos := nav_agent.get_next_path_position()
|
var path_pos := nav_agent.get_next_path_position()
|
||||||
var relative_pos := path_pos - global_position
|
var relative_pos := path_pos - global_position
|
||||||
motion = relative_pos.normalized() * get_speed() * delta
|
motion = relative_pos.normalized() * get_speed() * delta
|
||||||
|
@ -118,14 +118,16 @@ text = "SPOOKY!"
|
|||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||||
shape = SubResource("CapsuleShape3D_faau1")
|
shape = SubResource("CapsuleShape3D_faau1")
|
||||||
|
|
||||||
[node name="NavAgent" type="NavigationAgent3D" parent="."]
|
[node name="Navigation" type="Node3D" parent="."]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, 0)
|
||||||
|
|
||||||
|
[node name="NavAgent" type="NavigationAgent3D" parent="Navigation"]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
path_desired_distance = 0.75
|
path_postprocessing = 1
|
||||||
debug_enabled = true
|
debug_enabled = true
|
||||||
|
|
||||||
[node name="NavProbe" type="NavigationAgent3D" parent="."]
|
[node name="NavProbe" type="NavigationAgent3D" parent="Navigation"]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
path_desired_distance = 0.75
|
|
||||||
debug_enabled = true
|
debug_enabled = true
|
||||||
debug_use_custom = true
|
debug_use_custom = true
|
||||||
debug_path_custom_color = Color(0, 1, 0, 1)
|
debug_path_custom_color = Color(0, 1, 0, 1)
|
||||||
@ -170,7 +172,7 @@ shape = SubResource("SphereShape3D_lak6w")
|
|||||||
|
|
||||||
[node name="StalkingTimer" type="Timer" parent="."]
|
[node name="StalkingTimer" type="Timer" parent="."]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
wait_time = 25.0
|
wait_time = 40.0
|
||||||
one_shot = true
|
one_shot = true
|
||||||
|
|
||||||
[node name="GrunkBeastBehavior" type="Node" parent="." node_paths=PackedStringArray("blackboard", "actor")]
|
[node name="GrunkBeastBehavior" type="Node" parent="." node_paths=PackedStringArray("blackboard", "actor")]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user