Some checks failed
Godot CI / Import + smoke test (push) Failing after 34s
ФИКС АКТА 2 (главный баг):
- CenterContainer/WelcomeScreen/FourSquares имели
anchor_right=1.0 + offset_right=640 → элементы уезжали
ЗА пределы экрана (далеко на восток). Установочное окно
было невидно. Заменил на anchors_preset=15 (full rect)
без offset, теперь Center правильно центрирует Window.
- PanelContainer без StyleBox = прозрачный. Добавлены 3
StyleBoxFlat (style_window — основное окно с рамкой,
style_titlebar — тёмный header с жёлтым заголовком,
style_panel — для вложенных панелей). Окно установки
теперь видимо как настоящее Шиндовс-окно.
- Body теперь без scroll_active (fit_content), Buttons
с min_size 110×28 — кнопки чётко видны.
ОТЕЦ:
- Шёл на ЗАПАД (position.x - 2.5 = -0.8) в стену, а дверь
на ВОСТОКЕ. Меняю на +1.0 (восток к двери при x=2.05).
- _walk_father_out: сначала поворот корпуса 0.3 сек к двери
(rotation:y = -PI/2), потом 1.4 сек шагание:
* движение position:x на восток
* абс(sin) bob тела на 0.04м (4 шага)
* sin качание ног (LegL/LegR) и рук (ArmL/ArmR) в
противофазе с амплитудой 0.4/0.24 радиан
- Теперь отец действительно идёт к двери с шагающей походкой.
ГЛАВНОЕ МЕНЮ (чего не хватало):
- scenes/main_menu.tscn: тёмный фон с виньетками, заголовок
жёлтым акцентом, 4 кнопки (Новая игра / Продолжить /
Настройки / Выйти), StyleBoxFlat для кнопок.
- main_menu.gd: ESC = Quit, кнопка «Новая игра» →
SceneManager.go_room(), GameState.reset() при входе в меню.
- project.godot main_scene = main_menu.tscn (было act1_room).
- SceneManager + go_main() метод.
HUD UX:
- set_date_time("","") теперь прячет лейбл (раньше показывал
"· "). В меню HUD скрыт полностью.
- В Акте 1 и кухне при _ready восстанавливается crosshair +
controls_hint (которые меню скрывает).
ЧЕГО ВСЁ ЕЩЁ НЕ ХВАТАЕТ (для следующих сессий):
- Звуки/SFX (шаги, клики, sfxr-эффекты, дверь)
- Pause-меню по ESC во время геймплея
- Save/load система (сейчас всё сбрасывается)
- Анимация перехода между сценами (fade-in/out)
- Реальные ассеты (CC0 модели мебели/персонажей)
- Музыка/амбиент (CC0 трек комнаты)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
121 lines
3.2 KiB
Text
121 lines
3.2 KiB
Text
[gd_scene load_steps=3 format=3]
|
|
|
|
[ext_resource type="Script" path="res://scripts/main_menu.gd" id="1_menu"]
|
|
|
|
[sub_resource type="StyleBoxFlat" id="style_btn"]
|
|
bg_color = Color(0.15, 0.16, 0.2, 1)
|
|
border_width_left = 1
|
|
border_width_top = 1
|
|
border_width_right = 1
|
|
border_width_bottom = 1
|
|
border_color = Color(0.4, 0.42, 0.48, 1)
|
|
corner_radius_top_left = 2
|
|
corner_radius_top_right = 2
|
|
corner_radius_bottom_left = 2
|
|
corner_radius_bottom_right = 2
|
|
content_margin_left = 12.0
|
|
content_margin_top = 6.0
|
|
content_margin_right = 12.0
|
|
content_margin_bottom = 6.0
|
|
|
|
[node name="MainMenu" type="Control"]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
script = ExtResource("1_menu")
|
|
|
|
[node name="BG" type="ColorRect" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
color = Color(0.06, 0.06, 0.09, 1)
|
|
|
|
[node name="VignetteTop" type="ColorRect" parent="."]
|
|
offset_left = 0.0
|
|
offset_top = 0.0
|
|
offset_right = 640.0
|
|
offset_bottom = 60.0
|
|
color = Color(0.04, 0.04, 0.07, 1)
|
|
|
|
[node name="VignetteBot" type="ColorRect" parent="."]
|
|
offset_left = 0.0
|
|
offset_top = 300.0
|
|
offset_right = 640.0
|
|
offset_bottom = 360.0
|
|
color = Color(0.04, 0.04, 0.07, 1)
|
|
|
|
[node name="Center" type="CenterContainer" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
|
|
[node name="V" type="VBoxContainer" parent="Center"]
|
|
custom_minimum_size = Vector2(320, 270)
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 6
|
|
|
|
[node name="Title" type="Label" parent="Center/V"]
|
|
layout_mode = 2
|
|
text = "FARMING SIMULATOR"
|
|
horizontal_alignment = 1
|
|
modulate = Color(0.94, 0.71, 0.1, 1)
|
|
|
|
[node name="Tagline" type="Label" parent="Center/V"]
|
|
layout_mode = 2
|
|
text = "Подросток-фермер CS/TF2/PUBG кейсов · 2020-2026"
|
|
horizontal_alignment = 1
|
|
modulate = Color(0.7, 0.7, 0.7, 1)
|
|
|
|
[node name="Spacer" type="Control" parent="Center/V"]
|
|
custom_minimum_size = Vector2(0, 30)
|
|
layout_mode = 2
|
|
|
|
[node name="BtnNew" type="Button" parent="Center/V"]
|
|
custom_minimum_size = Vector2(200, 32)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
theme_override_styles/normal = SubResource("style_btn")
|
|
text = "Новая игра"
|
|
|
|
[node name="BtnContinue" type="Button" parent="Center/V"]
|
|
custom_minimum_size = Vector2(200, 32)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
theme_override_styles/normal = SubResource("style_btn")
|
|
disabled = true
|
|
text = "Продолжить (нет сохранения)"
|
|
|
|
[node name="BtnSettings" type="Button" parent="Center/V"]
|
|
custom_minimum_size = Vector2(200, 32)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
theme_override_styles/normal = SubResource("style_btn")
|
|
disabled = true
|
|
text = "Настройки (TBD)"
|
|
|
|
[node name="BtnQuit" type="Button" parent="Center/V"]
|
|
custom_minimum_size = Vector2(200, 32)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
theme_override_styles/normal = SubResource("style_btn")
|
|
text = "Выйти"
|
|
|
|
[node name="Version" type="Label" parent="."]
|
|
offset_left = 8.0
|
|
offset_top = 340.0
|
|
offset_right = 280.0
|
|
offset_bottom = 356.0
|
|
text = "v0.1 pre-alpha · pre-canon build"
|
|
modulate = Color(0.5, 0.5, 0.5, 1)
|
|
|
|
[node name="EscHint" type="Label" parent="."]
|
|
offset_left = 420.0
|
|
offset_top = 340.0
|
|
offset_right = 632.0
|
|
offset_bottom = 356.0
|
|
text = "ESC — выйти"
|
|
horizontal_alignment = 2
|
|
modulate = Color(0.5, 0.5, 0.5, 1)
|