Compare commits

...
Author SHA1 Message Date
Vojta f0b8c0fd48 Aesthetic improvements that won't be seen 2025-06-19 14:19:10 +02:00
Vojta 700fed5a87 Just record me going through the house 2025-06-19 00:10:14 +02:00
Vojta 2de2b7f5ee Go back to player-gameplay? 2025-06-18 23:26:17 +02:00
Vojta 505904e595 Better path 2025-06-18 23:18:25 +02:00
Vojta 205551af5a B fly in - draft 2025-06-18 23:12:28 +02:00
10 changed files with 107 additions and 66 deletions

No files matched your search

Binary file not shown.
+7 -1
View File
@@ -32,6 +32,12 @@ animation/trimming=false
animation/remove_immutable_tracks=true animation/remove_immutable_tracks=true
animation/import_rest_as_RESET=false animation/import_rest_as_RESET=false
import_script/path="" import_script/path=""
_subresources={} _subresources={
"nodes": {
"PATH:Chandelier": {
"mesh_instance/cast_shadow": 0
}
}
}
gltf/naming_version=1 gltf/naming_version=1
gltf/embedded_image_handling=1 gltf/embedded_image_handling=1
+4
View File
@@ -20,6 +20,10 @@ config/icon="res://icon.svg"
window/size/viewport_width=1920 window/size/viewport_width=1920
window/size/viewport_height=1080 window/size/viewport_height=1080
[editor]
movie_writer/mjpeg_quality=0.9
[editor_plugins] [editor_plugins]
enabled=PackedStringArray("res://addons/portals/plugin.cfg", "res://addons/proton_scatter/plugin.cfg") enabled=PackedStringArray("res://addons/portals/plugin.cfg", "res://addons/proton_scatter/plugin.cfg")
+27 -9
View File
@@ -1,4 +1,4 @@
[gd_scene load_steps=72 format=3 uid="uid://clxuoprslq8em"] [gd_scene load_steps=73 format=3 uid="uid://clxuoprslq8em"]
[ext_resource type="Script" uid="uid://4nvvgle511m4" path="res://scripts/house_big.gd" id="1_158ph"] [ext_resource type="Script" uid="uid://4nvvgle511m4" path="res://scripts/house_big.gd" id="1_158ph"]
[ext_resource type="PackedScene" uid="uid://wsu3b5udqtdu" path="res://meshes/village/Wall_UnevenBrick_Straight.gltf" id="1_p6qno"] [ext_resource type="PackedScene" uid="uid://wsu3b5udqtdu" path="res://meshes/village/Wall_UnevenBrick_Straight.gltf" id="1_p6qno"]
@@ -53,6 +53,7 @@
[ext_resource type="PackedScene" uid="uid://ghgretojabc1" path="res://meshes/interior/Vase_4.gltf" id="40_4hat2"] [ext_resource type="PackedScene" uid="uid://ghgretojabc1" path="res://meshes/interior/Vase_4.gltf" id="40_4hat2"]
[ext_resource type="PackedScene" uid="uid://co7ijbeyonv5" path="res://meshes/interior/Book_5.gltf" id="41_u6m7x"] [ext_resource type="PackedScene" uid="uid://co7ijbeyonv5" path="res://meshes/interior/Book_5.gltf" id="41_u6m7x"]
[ext_resource type="PackedScene" uid="uid://d1imd6qqtgy2e" path="res://meshes/village/Stair_Interior_Rails.gltf" id="42_isn6p"] [ext_resource type="PackedScene" uid="uid://d1imd6qqtgy2e" path="res://meshes/village/Stair_Interior_Rails.gltf" id="42_isn6p"]
[ext_resource type="PackedScene" uid="uid://c3myqiuhgghyo" path="res://meshes/interior/Lantern_Wall.gltf" id="54_nrbqc"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_dss4m"] [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_dss4m"]
albedo_color = Color(0.448364, 0.428649, 0.0977373, 1) albedo_color = Color(0.448364, 0.428649, 0.0977373, 1)
@@ -549,26 +550,30 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.9, 6, -3.5)
[node name="OmniLight3D" type="OmniLight3D" parent="WallsAndShit/Chandelier2"] [node name="OmniLight3D" type="OmniLight3D" parent="WallsAndShit/Chandelier2"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0676376, -0.834157, 0.600262) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0676376, -0.834157, 0.600262)
light_color = Color(0.860136, 0.848595, 0.752131, 1) light_color = Color(0.860136, 0.848595, 0.752131, 1)
light_energy = 0.961 light_energy = 0.576
omni_range = 5.751 shadow_enabled = true
omni_range = 6.338
[node name="OmniLight3D2" type="OmniLight3D" parent="WallsAndShit/Chandelier2"] [node name="OmniLight3D2" type="OmniLight3D" parent="WallsAndShit/Chandelier2"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0676376, -0.834157, -0.548677) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0676376, -0.834157, -0.548677)
light_color = Color(0.860136, 0.848595, 0.752131, 1) light_color = Color(0.860136, 0.848595, 0.752131, 1)
light_energy = 0.961 light_energy = 0.576
omni_range = 5.751 shadow_enabled = true
omni_range = 6.338
[node name="OmniLight3D3" type="OmniLight3D" parent="WallsAndShit/Chandelier2"] [node name="OmniLight3D3" type="OmniLight3D" parent="WallsAndShit/Chandelier2"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.632596, -0.834157, -0.00643849) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.632596, -0.834157, -0.00643849)
light_color = Color(0.860136, 0.848595, 0.752131, 1) light_color = Color(0.860136, 0.848595, 0.752131, 1)
light_energy = 0.961 light_energy = 0.576
omni_range = 5.751 shadow_enabled = true
omni_range = 6.338
[node name="OmniLight3D4" type="OmniLight3D" parent="WallsAndShit/Chandelier2"] [node name="OmniLight3D4" type="OmniLight3D" parent="WallsAndShit/Chandelier2"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.572049, -0.834157, 0.00770402) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.572049, -0.834157, 0.00770402)
light_color = Color(0.860136, 0.848595, 0.752131, 1) light_color = Color(0.860136, 0.848595, 0.752131, 1)
light_energy = 0.961 light_energy = 0.576
omni_range = 5.751 shadow_enabled = true
omni_range = 6.338
[node name="Bed_Twin12" parent="WallsAndShit" instance=ExtResource("21_77p6n")] [node name="Bed_Twin12" parent="WallsAndShit" instance=ExtResource("21_77p6n")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, -5.6, 0.3, -0.7) transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, -5.6, 0.3, -0.7)
@@ -765,6 +770,19 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.60376, 0.0895298, -6.71063)
[node name="Stair_Interior_Rails2" parent="WallsAndShit" instance=ExtResource("42_isn6p")] [node name="Stair_Interior_Rails2" parent="WallsAndShit" instance=ExtResource("42_isn6p")]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -0.185164, 0.0756873, -6.01873) transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -0.185164, 0.0756873, -6.01873)
[node name="Lantern_Wall2" parent="WallsAndShit" instance=ExtResource("54_nrbqc")]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -6.2387, 6.11833, -3.1478)
[node name="OmniLight3D" type="OmniLight3D" parent="WallsAndShit/Lantern_Wall2"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.310703, 0.836766)
light_color = Color(0.873324, 0.836156, 0.57236, 1)
light_energy = 0.346
light_size = 0.031
light_bake_mode = 1
shadow_blur = 2.971
omni_range = 6.692
omni_attenuation = 0.486
[node name="NecessaryColliders" type="StaticBody3D" parent="."] [node name="NecessaryColliders" type="StaticBody3D" parent="."]
[node name="BalconyGround" type="CollisionShape3D" parent="NecessaryColliders"] [node name="BalconyGround" type="CollisionShape3D" parent="NecessaryColliders"]
+2 -2
View File
@@ -72,10 +72,10 @@ tracks/0/type = "value"
tracks/0/imported = false tracks/0/imported = false
tracks/0/enabled = true tracks/0/enabled = true
tracks/0/path = NodePath("Door_8_Round2:rotation") tracks/0/path = NodePath("Door_8_Round2:rotation")
tracks/0/interp = 1 tracks/0/interp = 2
tracks/0/loop_wrap = true tracks/0/loop_wrap = true
tracks/0/keys = { tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5), "times": PackedFloat32Array(0, 0.9),
"transitions": PackedFloat32Array(1, 1), "transitions": PackedFloat32Array(1, 1),
"update": 0, "update": 0,
"values": [Vector3(0, -3.14159, 0), Vector3(0, -1.39626, 0)] "values": [Vector3(0, -3.14159, 0), Vector3(0, -1.39626, 0)]
+21 -30
View File
@@ -12,9 +12,10 @@
[ext_resource type="PackedScene" uid="uid://v2td8h7kmqic" path="res://meshes/interior/Bed_Twin2.gltf" id="13_7t5mc"] [ext_resource type="PackedScene" uid="uid://v2td8h7kmqic" path="res://meshes/interior/Bed_Twin2.gltf" id="13_7t5mc"]
[ext_resource type="Script" uid="uid://cw1r4c1d7beyv" path="res://addons/portals/scripts/portal_3d.gd" id="13_xo05s"] [ext_resource type="Script" uid="uid://cw1r4c1d7beyv" path="res://addons/portals/scripts/portal_3d.gd" id="13_xo05s"]
[ext_resource type="Material" uid="uid://dcfkcyddxkglf" path="res://addons/portals/materials/editor-preview-portal-material.tres" id="14_dss4m"] [ext_resource type="Material" uid="uid://dcfkcyddxkglf" path="res://addons/portals/materials/editor-preview-portal-material.tres" id="14_dss4m"]
[ext_resource type="Script" uid="uid://d2eiwbv6c3kcq" path="res://scripts/door_opener.gd" id="14_lakw3"]
[ext_resource type="Script" uid="uid://bxcel82b180o3" path="res://addons/portals/scripts/portal_boxmesh.gd" id="15_7t5mc"] [ext_resource type="Script" uid="uid://bxcel82b180o3" path="res://addons/portals/scripts/portal_boxmesh.gd" id="15_7t5mc"]
[ext_resource type="PackedScene" uid="uid://clxuoprslq8em" path="res://scenes/house_big.tscn" id="16_dss4m"] [ext_resource type="PackedScene" uid="uid://clxuoprslq8em" path="res://scenes/house_big.tscn" id="16_dss4m"]
[ext_resource type="Script" uid="uid://co2pjpdo4nyto" path="res://scripts/cinematic_camera.gd" id="18_lakw3"] [ext_resource type="Script" uid="uid://d2crarvkhd45r" path="res://scripts/player.gd" id="17_7t5mc"]
[ext_resource type="PackedScene" uid="uid://dc4ynch2n1ish" path="res://meshes/village/Roof_RoundTiles_4x4.gltf" id="22_kpybi"] [ext_resource type="PackedScene" uid="uid://dc4ynch2n1ish" path="res://meshes/village/Roof_RoundTiles_4x4.gltf" id="22_kpybi"]
[ext_resource type="PackedScene" uid="uid://b7mjoyryltilk" path="res://meshes/village/Roof_Front_Brick4.gltf" id="23_ctatt"] [ext_resource type="PackedScene" uid="uid://b7mjoyryltilk" path="res://meshes/village/Roof_Front_Brick4.gltf" id="23_ctatt"]
@@ -33,9 +34,11 @@ ambient_light_color = Color(0.939669, 0.875855, 0.802177, 1)
ambient_light_energy = 0.2 ambient_light_energy = 0.2
tonemap_mode = 3 tonemap_mode = 3
ssao_enabled = true ssao_enabled = true
ssao_intensity = 5.0 ssao_power = 0.75
ssil_enabled = true
fog_density = 0.0051 fog_density = 0.0051
fog_sky_affect = 0.23 fog_sky_affect = 0.23
adjustment_enabled = true
[sub_resource type="BoxShape3D" id="BoxShape3D_q5onr"] [sub_resource type="BoxShape3D" id="BoxShape3D_q5onr"]
size = Vector3(1.83496, 2.19373, 1.46497) size = Vector3(1.83496, 2.19373, 1.46497)
@@ -78,17 +81,12 @@ size = Vector3(1.5, 2.5, 1)
[sub_resource type="WorldBoundaryShape3D" id="WorldBoundaryShape3D_dss4m"] [sub_resource type="WorldBoundaryShape3D" id="WorldBoundaryShape3D_dss4m"]
[sub_resource type="SphereMesh" id="SphereMesh_lakw3"] [sub_resource type="CapsuleShape3D" id="CapsuleShape3D_dss4m"]
radius = 0.2
[sub_resource type="Curve3D" id="Curve3D_lakw3"] height = 1.75
_data = {
"points": PackedVector3Array(0, 0, 0, 0, 0, 0, -0.489602, 2, 1.0528, 1.33258, 0, -1.33258, -1.33258, 0, 1.33258, -4.78907, 1, 2.00823, 1.96116, 0, -1.70973, -1.96116, 0, 1.70973, -8.76168, 0, 8.84715, 2.26288, 0, 1.33258, -2.26288, 0, -1.33258, -20.4532, 0, 9.17401, 0.301716, 0, 4.92804, -0.301716, 0, -4.92804, -24.9035, 0, 0.851653, -2.7406, 0, 1.83544, 2.7406, 0, -1.83544, -19.9503, 0, -8.37586, -3.04231, 0, -1.9863, 3.04231, 0, 1.9863, -8.98796, 0, -8.225, 0, 0, 0, 0, 0, 0, -6.02108, -1.2, -0.757503),
"tilts": PackedFloat32Array(0, 0, 0, 0, 0, 0, 0, 0)
}
point_count = 8
[node name="World" type="Node3D"] [node name="World" type="Node3D"]
metadata/movie_file = "captures/a_.png" metadata/movie_file = "captures/f_.avi"
[node name="WorldEnvironment" type="WorldEnvironment" parent="."] [node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_o8fc1") environment = SubResource("Environment_o8fc1")
@@ -184,6 +182,7 @@ transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 3.1, 0
collision_layer = 0 collision_layer = 0
collision_mask = 2 collision_mask = 2
monitorable = false monitorable = false
script = ExtResource("14_lakw3")
[node name="CollisionShape3D" type="CollisionShape3D" parent="DoorOpener"] [node name="CollisionShape3D" type="CollisionShape3D" parent="DoorOpener"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.05282, 0.739908) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.05282, 0.739908)
@@ -235,7 +234,7 @@ _teleport_area_path = NodePath("TeleportArea")
_teleport_collider_path = NodePath("TeleportArea/Collider") _teleport_collider_path = NodePath("TeleportArea/Collider")
portal_size = Vector2(1.5, 2.5) portal_size = Vector2(1.5, 2.5)
exit_portal = NodePath("../PortalSmall") exit_portal = NodePath("../PortalSmall")
portal_frame_width = 0.0 portal_frame_width = 1.0
viewport_size_mode = 0 viewport_size_mode = 0
view_direction = 1 view_direction = 1
portal_render_layer = 524288 portal_render_layer = 524288
@@ -266,26 +265,18 @@ shape = SubResource("BoxShape3D_7t5mc")
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"] [node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
shape = SubResource("WorldBoundaryShape3D_dss4m") shape = SubResource("WorldBoundaryShape3D_dss4m")
[node name="CinematicCamera" type="Camera3D" parent="." node_paths=PackedStringArray("path", "follower", "target")] [node name="CharacterBody3D" type="CharacterBody3D" parent="." node_paths=PackedStringArray("camera")]
cull_mask = 524287 transform = Transform3D(-0.524357, 0, 0.851498, 0, 1, 0, -0.851498, 0, -0.524357, 10.6968, 1.36224, -8.3989)
current = true collision_layer = 3
script = ExtResource("18_lakw3") script = ExtResource("17_7t5mc")
travel_time = 10.0 camera = NodePath("Camera3D")
path = NodePath("../A_FlyAround") metadata/_edit_group_ = true
follower = NodePath("../A_FlyAround/PathFollow3D")
target = NodePath("../Target")
[node name="Target" type="MeshInstance3D" parent="."] [node name="Camera3D" type="Camera3D" parent="CharacterBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.12776, 0.638181, -3.20715) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.925, 0)
layers = 524288
mesh = SubResource("SphereMesh_lakw3")
[node name="A_FlyAround" type="Path3D" parent="."] [node name="CollisionShape3D" type="CollisionShape3D" parent="CharacterBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 15.0132, 3, -2.29886) shape = SubResource("CapsuleShape3D_dss4m")
curve = SubResource("Curve3D_lakw3")
[node name="PathFollow3D" type="PathFollow3D" parent="A_FlyAround"]
transform = Transform3D(-0.216929, -0.21614, 0.951955, 1.49011e-08, 0.975179, 0.221412, -0.976186, 0.0480309, -0.211544, -0.489602, 2, 1.0528)
[connection signal="body_entered" from="DoorOpener" to="House_Small/PortalDoor" method="open"] [connection signal="body_entered" from="DoorOpener" to="House_Small/PortalDoor" method="open"]
[connection signal="body_entered" from="DoorOpener" to="HouseBig" method="open_door"] [connection signal="body_entered" from="DoorOpener" to="HouseBig" method="open_door"]
+3 -2
View File
@@ -2,16 +2,17 @@ extends Camera3D
@export_range(1, 100, 0.1, "suffix:s") var travel_time: float @export_range(1, 100, 0.1, "suffix:s") var travel_time: float
@export var path: Path3D @export var path: Path3D
@export var follower: PathFollow3D var follower: PathFollow3D
@export var target: MeshInstance3D @export var target: MeshInstance3D
func _ready() -> void: func _ready() -> void:
assert (path != null) assert (path != null)
follower = path.get_node("PathFollow3D")
assert(follower != null) assert(follower != null)
assert(target != null) assert(target != null)
var t = get_tree().create_tween() var t = get_tree().create_tween()
t.set_trans(Tween.TRANS_CUBIC) t.set_trans(Tween.TRANS_QUAD)
t.set_ease(Tween.EASE_IN_OUT) t.set_ease(Tween.EASE_IN_OUT)
t.tween_property(follower, "progress_ratio", 1, travel_time) t.tween_property(follower, "progress_ratio", 1, travel_time)
t.tween_callback(get_tree().quit.bind(0)) t.tween_callback(get_tree().quit.bind(0))
+6
View File
@@ -0,0 +1,6 @@
extends Area3D
func _process(delta: float) -> void:
if Input.is_key_pressed(KEY_E):
body_entered.emit(null)
+1
View File
@@ -0,0 +1 @@
uid://d2eiwbv6c3kcq
+36 -22
View File
@@ -31,36 +31,50 @@ func _process(delta: float) -> void:
camera.rotation.x = lerp_angle(camera.rotation.x, target_rotation.x, delta * ROTATION_SPEED) camera.rotation.x = lerp_angle(camera.rotation.x, target_rotation.x, delta * ROTATION_SPEED)
func _physics_process(delta: float) -> void: const ACCELERATION := 10.0
var right: Vector3 = (global_transform.basis.x * Vector3(1, 0, 1)).normalized() const DECELERATION := 6.0
var forward: Vector3 = (-global_transform.basis.z * Vector3(1, 0, 1)).normalized()
var has_input = false
velocity.x = 0
velocity.z = 0
var input_direction := Vector3.ZERO
var target_velocity := Vector3.ZERO
func _get_input_direction() -> Vector3:
var direction := Vector3.ZERO
if Input.is_key_pressed(KEY_LEFT) or Input.is_key_pressed(KEY_A): if Input.is_key_pressed(KEY_LEFT) or Input.is_key_pressed(KEY_A):
has_input = true direction.x -= 1
velocity -= right
if Input.is_key_pressed(KEY_RIGHT) or Input.is_key_pressed(KEY_D): if Input.is_key_pressed(KEY_RIGHT) or Input.is_key_pressed(KEY_D):
has_input = true direction.x += 1
velocity += right
if Input.is_key_pressed(KEY_UP) or Input.is_key_pressed(KEY_W): if Input.is_key_pressed(KEY_UP) or Input.is_key_pressed(KEY_W):
has_input = true direction.z += 1
velocity += forward
if Input.is_key_pressed(KEY_DOWN) or Input.is_key_pressed(KEY_S): if Input.is_key_pressed(KEY_DOWN) or Input.is_key_pressed(KEY_S):
has_input = true direction.z -= 1
velocity -= forward return direction.normalized()
if has_input: func _physics_process(delta: float) -> void:
var normalized_horizontal_velocity = Vector2(velocity.x, velocity.z).normalized() # Get input direction relative to player orientation
velocity.x = normalized_horizontal_velocity.x * SPEED input_direction = _get_input_direction()
velocity.z = normalized_horizontal_velocity.y * SPEED
var basis := global_transform.basis
var forward := -basis.z.normalized()
var right := basis.x.normalized()
# Desired horizontal movement direction in world space
var desired_velocity : Vector3 = (right * input_direction.x + forward * input_direction.z) * SPEED
desired_velocity.y = 0 # Only horizontal
# Smooth acceleration/deceleration
var accel := DECELERATION if input_direction == Vector3.ZERO else ACCELERATION
target_velocity.x = lerp(target_velocity.x, desired_velocity.x, accel * delta)
target_velocity.z = lerp(target_velocity.z, desired_velocity.z, accel * delta)
# Preserve existing vertical velocity
if not is_on_floor(): if not is_on_floor():
velocity += get_gravity() * delta target_velocity.y += get_gravity().y * delta
else:
if Input.is_action_just_pressed("ui_accept") and is_on_floor(): target_velocity.y = 0
velocity.y = JUMP_VELOCITY if Input.is_action_just_pressed("ui_accept"):
target_velocity.y = JUMP_VELOCITY
# Apply movement
velocity = target_velocity
move_and_slide() move_and_slide()