Refactor game scripts and update vault scene structure. Enhanced organization of game logic by separating data and rendering responsibilities across multiple scripts. Removed unused background assets and updated vault scene to include new game clock and weather system functionalities.
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
[gd_scene format=3 uid="uid://dprxap0ioe3ps"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://lsclvc1dgviq" path="res://scripts/game/vault_scene.gd" id="1_o8yry"]
|
||||
[ext_resource type="Script" uid="uid://ddaqvur2yl61c" path="res://scripts/game/sky_view.gd" id="2_lffpp"]
|
||||
[ext_resource type="Script" uid="uid://bvimo3kgmefgf" path="res://scripts/game/vault_view.gd" id="2_mkhle"]
|
||||
[ext_resource type="Script" uid="uid://c4c36o4o35gqw" path="res://scripts/game/surface_view.gd" id="3_lvdr8"]
|
||||
[ext_resource type="Script" uid="uid://dg751mcd0v178" path="res://scripts/game/vault_camera.gd" id="3_x7j0k"]
|
||||
[ext_resource type="Theme" uid="uid://c6kkopjj3snag" path="res://themes/main_menu.theme.tres" id="4_sch52"]
|
||||
[ext_resource type="PackedScene" uid="uid://cvx4ot7ugyprk" path="res://scenes/ui/pause_menu.tscn" id="5_lffpp"]
|
||||
[ext_resource type="Script" uid="uid://7wstqw8ve2he" path="res://scripts/game/game_clock.gd" id="6_mkhle"]
|
||||
[ext_resource type="Script" uid="uid://by1cwvs3fc3pa" path="res://scripts/game/weather_system.gd" id="9_m0p8k"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_lvdr8"]
|
||||
content_margin_left = 22.0
|
||||
@@ -38,9 +42,31 @@ corner_radius_top_right = 14
|
||||
corner_radius_bottom_right = 14
|
||||
corner_radius_bottom_left = 14
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_mkhle"]
|
||||
content_margin_left = 14.0
|
||||
content_margin_top = 8.0
|
||||
content_margin_right = 14.0
|
||||
content_margin_bottom = 8.0
|
||||
bg_color = Color(0.043137256, 0.07450981, 0.13333334, 0.8784314)
|
||||
border_width_left = 1
|
||||
border_width_top = 1
|
||||
border_width_right = 1
|
||||
border_width_bottom = 1
|
||||
border_color = Color(0.18039216, 0.9019608, 0.77254903, 0.2)
|
||||
corner_radius_top_left = 10
|
||||
corner_radius_top_right = 10
|
||||
corner_radius_bottom_right = 10
|
||||
corner_radius_bottom_left = 10
|
||||
|
||||
[node name="Vault" type="Node2D" unique_id=1382797618]
|
||||
script = ExtResource("1_o8yry")
|
||||
|
||||
[node name="Sky" type="Node2D" parent="." unique_id=1428657021]
|
||||
script = ExtResource("2_lffpp")
|
||||
|
||||
[node name="Surface" type="Node2D" parent="." unique_id=320825958]
|
||||
script = ExtResource("3_lvdr8")
|
||||
|
||||
[node name="View" type="Node2D" parent="." unique_id=1238774489]
|
||||
script = ExtResource("2_mkhle")
|
||||
|
||||
@@ -104,4 +130,64 @@ theme_override_colors/font_color = Color(0.3647059, 0.44705883, 0.53333336, 1)
|
||||
theme_override_font_sizes/font_size = 15
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="TopRight" type="MarginContainer" parent="Hud/Root" unique_id=417759891]
|
||||
layout_mode = 0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
mouse_filter = 2
|
||||
theme_override_constants/margin_left = 36
|
||||
theme_override_constants/margin_top = 36
|
||||
theme_override_constants/margin_right = 36
|
||||
theme_override_constants/margin_bottom = 36
|
||||
|
||||
[node name="Row" type="HBoxContainer" parent="Hud/Root/TopRight" unique_id=705018436]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 0
|
||||
mouse_filter = 2
|
||||
alignment = 2
|
||||
|
||||
[node name="ClockBar" type="PanelContainer" parent="Hud/Root/TopRight/Row" unique_id=2028708536]
|
||||
layout_mode = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_mkhle")
|
||||
|
||||
[node name="Body" type="VBoxContainer" parent="Hud/Root/TopRight/Row/ClockBar" unique_id=220234733]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 6
|
||||
|
||||
[node name="Moment" type="HBoxContainer" parent="Hud/Root/TopRight/Row/ClockBar/Body" unique_id=195744038]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 10
|
||||
alignment = 2
|
||||
|
||||
[node name="WeatherLabel" type="Label" parent="Hud/Root/TopRight/Row/ClockBar/Body/Moment" unique_id=895640468]
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.48235294, 0.56078434, 0.6392157, 1)
|
||||
theme_override_font_sizes/font_size = 14
|
||||
text = "Ясно"
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="DateLabel" type="Label" parent="Hud/Root/TopRight/Row/ClockBar/Body/Moment" unique_id=1045252723]
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.56078434, 0.64705884, 0.7294118, 1)
|
||||
theme_override_font_sizes/font_size = 14
|
||||
text = "1 апреля 2012"
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="TimeLabel" type="Label" parent="Hud/Root/TopRight/Row/ClockBar/Body/Moment" unique_id=686404941]
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.18039216, 0.9019608, 0.77254903, 1)
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "06:00"
|
||||
|
||||
[node name="Controls" type="HBoxContainer" parent="Hud/Root/TopRight/Row/ClockBar/Body" unique_id=278368540]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 4
|
||||
alignment = 2
|
||||
|
||||
[node name="PauseMenu" parent="." unique_id=1649378803 instance=ExtResource("5_lffpp")]
|
||||
|
||||
[node name="Clock" type="Node" parent="." unique_id=1353564659]
|
||||
script = ExtResource("6_mkhle")
|
||||
|
||||
[node name="Weather" type="Node" parent="." unique_id=1790958949]
|
||||
script = ExtResource("9_m0p8k")
|
||||
|
||||
Reference in New Issue
Block a user