act1: FPV-комната с подарком, запиской и флешкой
Some checks failed
Godot CI / Import + smoke test (push) Failing after 19s

3D-сцена 4×4м: стены/пол/потолок, окно (свечение), дверь, стол с пека,
кровать с одеялом, подарок-коробка на полу, отец-NPC в дверях.

Архитектура:
- FPVController (CharacterBody3D + Camera3D + RayCast3D) — mouse look,
  WASD, raycast-pickup, lock_input для катсцен.
- Interactable (StaticBody3D base) — toggle через collision_layer.
- DialogManager (autoload CanvasLayer) — субтитры snake-case, fullscreen
  записка, HUD-подсказки, prompt над крестом, await через signal.
- act1.gd — state machine: INTRO → EXPLORE_GIFT → INSIDE_GIFT →
  NOTE_READ → FATHER_FAREWELL (tween x-2.5) → SEEK_DRIVE → ENDING.

Канон-реплики из Пролог_Первый_день.md без правок:
- Отец intro + про флешку с Шиндой
- Записка «Не сожги. Пароль от Wi-Fi на холодильнике. — Бать»
- Мысли героя: «новый пека?», «бать ну ты красавчик», «Андрюхино так Андрюхино»

GL Compatibility renderer, unshaded материалы плоскими цветами под
pixel-art 640×360. Тестировано на RTX 5070 — стартует без ошибок.

main.tscn placeholder удалён, main_scene = act1_room.tscn.

Не покрыто в MVP (TBD):
- Опц. выход на кухню → холодильник → Wi-Fi пароль
- Mastermind hack-mini-game для подбора Wi-Fi
- Sfxr звуки (открытие коробки, шаги)
- Переход в Акт 2 (пока quit на финале)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dmitrii Bykov 2026-05-24 17:12:04 +03:00
parent d1c28d088b
commit d1b3afd006
15 changed files with 733 additions and 50 deletions

View file

@ -0,0 +1,94 @@
[gd_scene load_steps=2 format=3]
[ext_resource type="Script" path="res://scripts/ui/dialog_manager.gd" id="1_dlg"]
[node name="DialogManager" type="CanvasLayer"]
layer = 10
script = ExtResource("1_dlg")
[node name="HudLabel" type="Label" parent="."]
offset_left = 8.0
offset_top = 4.0
offset_right = 632.0
offset_bottom = 22.0
text = ""
modulate = Color(0.85, 0.85, 0.85, 1)
[node name="PromptLabel" type="Label" parent="."]
offset_left = 0.0
offset_top = 200.0
offset_right = 640.0
offset_bottom = 220.0
text = ""
horizontal_alignment = 1
modulate = Color(1, 0.95, 0.6, 1)
[node name="SubtitlePanel" type="PanelContainer" parent="."]
offset_left = 20.0
offset_top = 260.0
offset_right = 620.0
offset_bottom = 350.0
[node name="V" type="VBoxContainer" parent="SubtitlePanel"]
layout_mode = 2
[node name="Who" type="Label" parent="SubtitlePanel/V"]
layout_mode = 2
text = "[Я]"
modulate = Color(0.9, 0.8, 0.5, 1)
[node name="Text" type="Label" parent="SubtitlePanel/V"]
layout_mode = 2
text = ""
autowrap_mode = 3
[node name="Hint" type="Label" parent="SubtitlePanel/V"]
layout_mode = 2
text = "ЛКМ или ПРОБЕЛ — дальше"
horizontal_alignment = 2
modulate = Color(0.55, 0.55, 0.55, 1)
[node name="NoteOverlay" type="Control" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
offset_right = 640.0
offset_bottom = 360.0
mouse_filter = 0
[node name="DarkBG" type="ColorRect" parent="NoteOverlay"]
anchor_right = 1.0
anchor_bottom = 1.0
offset_right = 640.0
offset_bottom = 360.0
color = Color(0, 0, 0, 0.75)
[node name="Center" type="CenterContainer" parent="NoteOverlay"]
anchor_right = 1.0
anchor_bottom = 1.0
offset_right = 640.0
offset_bottom = 360.0
[node name="P" type="PanelContainer" parent="NoteOverlay/Center"]
custom_minimum_size = Vector2(420, 180)
layout_mode = 2
[node name="V2" type="VBoxContainer" parent="NoteOverlay/Center/P"]
layout_mode = 2
[node name="Title" type="Label" parent="NoteOverlay/Center/P/V2"]
layout_mode = 2
text = "Записка"
horizontal_alignment = 1
modulate = Color(0.9, 0.8, 0.5, 1)
[node name="Text" type="Label" parent="NoteOverlay/Center/P/V2"]
layout_mode = 2
text = ""
autowrap_mode = 3
horizontal_alignment = 1
[node name="Hint" type="Label" parent="NoteOverlay/Center/P/V2"]
layout_mode = 2
text = "ЛКМ или ПРОБЕЛ — закрыть"
horizontal_alignment = 1
modulate = Color(0.55, 0.55, 0.55, 1)

View file

@ -0,0 +1,25 @@
[gd_scene load_steps=3 format=3]
[ext_resource type="Script" path="res://scripts/player/fpv_controller.gd" id="1_fpv"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_player"]
height = 1.7
radius = 0.3
[node name="PlayerFPV" type="CharacterBody3D"]
script = ExtResource("1_fpv")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.85, 0)
shape = SubResource("CapsuleShape3D_player")
[node name="Camera3D" type="Camera3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.6, 0)
current = true
fov = 70.0
near = 0.1
far = 50.0
[node name="InteractRay" type="RayCast3D" parent="Camera3D"]
target_position = Vector3(0, 0, -2.5)
collision_mask = 1

View file

@ -0,0 +1,305 @@
[gd_scene load_steps=42 format=3]
[ext_resource type="Script" path="res://scripts/prologue/act1.gd" id="1_act1"]
[ext_resource type="Script" path="res://scripts/interactables/interactable.gd" id="2_int"]
[ext_resource type="PackedScene" path="res://scenes/components/player_fpv.tscn" id="3_player"]
[sub_resource type="BoxMesh" id="mesh_floor"]
size = Vector3(4, 0.1, 4)
[sub_resource type="BoxShape3D" id="shape_floor"]
size = Vector3(4, 0.1, 4)
[sub_resource type="BoxMesh" id="mesh_wall_ns"]
size = Vector3(4, 2.5, 0.1)
[sub_resource type="BoxShape3D" id="shape_wall_ns"]
size = Vector3(4, 2.5, 0.1)
[sub_resource type="BoxMesh" id="mesh_wall_ew"]
size = Vector3(0.1, 2.5, 4)
[sub_resource type="BoxShape3D" id="shape_wall_ew"]
size = Vector3(0.1, 2.5, 4)
[sub_resource type="BoxMesh" id="mesh_window"]
size = Vector3(1.5, 1.0, 0.06)
[sub_resource type="BoxMesh" id="mesh_door"]
size = Vector3(0.06, 2.0, 1.0)
[sub_resource type="BoxMesh" id="mesh_desk"]
size = Vector3(1.5, 0.7, 0.6)
[sub_resource type="BoxShape3D" id="shape_desk"]
size = Vector3(1.5, 0.7, 0.6)
[sub_resource type="BoxMesh" id="mesh_old_pc"]
size = Vector3(0.25, 0.4, 0.3)
[sub_resource type="BoxMesh" id="mesh_bed"]
size = Vector3(2.0, 0.4, 1.0)
[sub_resource type="BoxShape3D" id="shape_bed"]
size = Vector3(2.0, 0.4, 1.0)
[sub_resource type="BoxMesh" id="mesh_blanket"]
size = Vector3(1.95, 0.06, 0.95)
[sub_resource type="BoxMesh" id="mesh_pillow"]
size = Vector3(0.5, 0.1, 0.25)
[sub_resource type="BoxMesh" id="mesh_gift"]
size = Vector3(0.5, 0.4, 0.5)
[sub_resource type="BoxShape3D" id="shape_gift"]
size = Vector3(0.5, 0.4, 0.5)
[sub_resource type="BoxMesh" id="mesh_sys"]
size = Vector3(0.35, 0.5, 0.45)
[sub_resource type="BoxMesh" id="mesh_note"]
size = Vector3(0.18, 0.012, 0.12)
[sub_resource type="BoxShape3D" id="shape_note"]
size = Vector3(0.18, 0.012, 0.12)
[sub_resource type="BoxMesh" id="mesh_flash"]
size = Vector3(0.06, 0.02, 0.025)
[sub_resource type="BoxShape3D" id="shape_flash"]
size = Vector3(0.06, 0.02, 0.025)
[sub_resource type="BoxMesh" id="mesh_father"]
size = Vector3(0.4, 1.7, 0.4)
[sub_resource type="StandardMaterial3D" id="mat_floor"]
shading_mode = 0
albedo_color = Color(0.55, 0.35, 0.22, 1)
[sub_resource type="StandardMaterial3D" id="mat_wall"]
shading_mode = 0
albedo_color = Color(0.79, 0.71, 0.54, 1)
[sub_resource type="StandardMaterial3D" id="mat_ceiling"]
shading_mode = 0
albedo_color = Color(0.85, 0.83, 0.78, 1)
[sub_resource type="StandardMaterial3D" id="mat_window"]
shading_mode = 0
albedo_color = Color(0.6, 0.85, 1.0, 1)
emission_enabled = true
emission = Color(0.6, 0.85, 1.0, 1)
emission_energy_multiplier = 0.5
[sub_resource type="StandardMaterial3D" id="mat_door"]
shading_mode = 0
albedo_color = Color(0.29, 0.18, 0.09, 1)
[sub_resource type="StandardMaterial3D" id="mat_desk"]
shading_mode = 0
albedo_color = Color(0.36, 0.23, 0.11, 1)
[sub_resource type="StandardMaterial3D" id="mat_old_pc"]
shading_mode = 0
albedo_color = Color(0.43, 0.43, 0.43, 1)
[sub_resource type="StandardMaterial3D" id="mat_blanket"]
shading_mode = 0
albedo_color = Color(0.45, 0.15, 0.15, 1)
[sub_resource type="StandardMaterial3D" id="mat_pillow"]
shading_mode = 0
albedo_color = Color(0.92, 0.88, 0.78, 1)
[sub_resource type="StandardMaterial3D" id="mat_gift"]
shading_mode = 0
albedo_color = Color(0.1, 0.1, 0.12, 1)
[sub_resource type="StandardMaterial3D" id="mat_sys"]
shading_mode = 0
albedo_color = Color(0.3, 0.32, 0.38, 1)
emission_enabled = true
emission = Color(0.2, 0.5, 0.9, 1)
emission_energy_multiplier = 0.6
[sub_resource type="StandardMaterial3D" id="mat_note"]
shading_mode = 0
albedo_color = Color(0.95, 0.95, 0.9, 1)
[sub_resource type="StandardMaterial3D" id="mat_flash"]
shading_mode = 0
albedo_color = Color(0.78, 0.18, 0.18, 1)
emission_enabled = true
emission = Color(0.78, 0.18, 0.18, 1)
emission_energy_multiplier = 0.4
[sub_resource type="StandardMaterial3D" id="mat_father"]
shading_mode = 0
albedo_color = Color(0.18, 0.22, 0.4, 1)
[node name="Act1Room" type="Node3D"]
script = ExtResource("1_act1")
[node name="Floor" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.05, 0)
[node name="Mesh" type="MeshInstance3D" parent="Floor"]
mesh = SubResource("mesh_floor")
material_override = SubResource("mat_floor")
[node name="Coll" type="CollisionShape3D" parent="Floor"]
shape = SubResource("shape_floor")
[node name="Ceiling" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.55, 0)
[node name="Mesh" type="MeshInstance3D" parent="Ceiling"]
mesh = SubResource("mesh_floor")
material_override = SubResource("mat_ceiling")
[node name="Coll" type="CollisionShape3D" parent="Ceiling"]
shape = SubResource("shape_floor")
[node name="WallN" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.25, -2.05)
[node name="Mesh" type="MeshInstance3D" parent="WallN"]
mesh = SubResource("mesh_wall_ns")
material_override = SubResource("mat_wall")
[node name="Coll" type="CollisionShape3D" parent="WallN"]
shape = SubResource("shape_wall_ns")
[node name="Window" type="MeshInstance3D" parent="WallN"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.3, 0.06)
mesh = SubResource("mesh_window")
material_override = SubResource("mat_window")
[node name="WallS" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.25, 2.05)
[node name="Mesh" type="MeshInstance3D" parent="WallS"]
mesh = SubResource("mesh_wall_ns")
material_override = SubResource("mat_wall")
[node name="Coll" type="CollisionShape3D" parent="WallS"]
shape = SubResource("shape_wall_ns")
[node name="WallE" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.05, 1.25, 0)
[node name="Mesh" type="MeshInstance3D" parent="WallE"]
mesh = SubResource("mesh_wall_ew")
material_override = SubResource("mat_wall")
[node name="Coll" type="CollisionShape3D" parent="WallE"]
shape = SubResource("shape_wall_ew")
[node name="DoorPanel" type="MeshInstance3D" parent="WallE"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.06, -0.25, 0)
mesh = SubResource("mesh_door")
material_override = SubResource("mat_door")
[node name="WallW" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.05, 1.25, 0)
[node name="Mesh" type="MeshInstance3D" parent="WallW"]
mesh = SubResource("mesh_wall_ew")
material_override = SubResource("mat_wall")
[node name="Coll" type="CollisionShape3D" parent="WallW"]
shape = SubResource("shape_wall_ew")
[node name="Desk" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.35, -1.5)
[node name="Mesh" type="MeshInstance3D" parent="Desk"]
mesh = SubResource("mesh_desk")
material_override = SubResource("mat_desk")
[node name="Coll" type="CollisionShape3D" parent="Desk"]
shape = SubResource("shape_desk")
[node name="OldPC" type="MeshInstance3D" parent="Desk"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.5, 0.55, 0)
mesh = SubResource("mesh_old_pc")
material_override = SubResource("mat_old_pc")
[node name="FlashDrive" type="StaticBody3D" parent="Desk"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.3, 0.36, 0.1)
script = ExtResource("2_int")
prompt = "взять флешку"
[node name="Mesh" type="MeshInstance3D" parent="Desk/FlashDrive"]
mesh = SubResource("mesh_flash")
material_override = SubResource("mat_flash")
[node name="Coll" type="CollisionShape3D" parent="Desk/FlashDrive"]
shape = SubResource("shape_flash")
[node name="Bed" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.5, 0.2, 1.4)
[node name="Mesh" type="MeshInstance3D" parent="Bed"]
mesh = SubResource("mesh_bed")
material_override = SubResource("mat_desk")
[node name="Coll" type="CollisionShape3D" parent="Bed"]
shape = SubResource("shape_bed")
[node name="Blanket" type="MeshInstance3D" parent="Bed"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.23, 0)
mesh = SubResource("mesh_blanket")
material_override = SubResource("mat_blanket")
[node name="Pillow" type="MeshInstance3D" parent="Bed"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.7, 0.31, 0)
mesh = SubResource("mesh_pillow")
material_override = SubResource("mat_pillow")
[node name="GiftBox" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.2, -0.3)
script = ExtResource("2_int")
prompt = "открыть коробку"
[node name="Mesh" type="MeshInstance3D" parent="GiftBox"]
mesh = SubResource("mesh_gift")
material_override = SubResource("mat_gift")
[node name="Coll" type="CollisionShape3D" parent="GiftBox"]
shape = SubResource("shape_gift")
[node name="SystemUnit" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.25, -0.3)
visible = false
[node name="Mesh" type="MeshInstance3D" parent="SystemUnit"]
mesh = SubResource("mesh_sys")
material_override = SubResource("mat_sys")
[node name="Note" type="StaticBody3D" parent="SystemUnit"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.26, 0)
script = ExtResource("2_int")
prompt = "прочитать записку"
[node name="Mesh" type="MeshInstance3D" parent="SystemUnit/Note"]
mesh = SubResource("mesh_note")
material_override = SubResource("mat_note")
[node name="Coll" type="CollisionShape3D" parent="SystemUnit/Note"]
shape = SubResource("shape_note")
[node name="FatherNPC" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.7, 0.85, 0)
[node name="Mesh" type="MeshInstance3D" parent="FatherNPC"]
mesh = SubResource("mesh_father")
material_override = SubResource("mat_father")
[node name="PlayerFPV" parent="." instance=ExtResource("3_player")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1.2)
[connection signal="interacted" from="Desk/FlashDrive" to="." method="_on_drive_interacted"]
[connection signal="interacted" from="GiftBox" to="." method="_on_gift_interacted"]
[connection signal="interacted" from="SystemUnit/Note" to="." method="_on_note_interacted"]