Refactor game structure and update project settings for 2D gameplay. Removed the game stub scene, introduced a new vault scene, and organized game scripts into distinct files for grid management, rendering, and scene control. Updated input actions for camera movement and changed rendering method to Mobile for better performance.
This commit is contained in:
@@ -1,88 +0,0 @@
|
||||
[gd_scene format=3 uid="uid://bcryjj0nongyh"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://1viyqekbic0n" path="res://scripts/game/game_stub.gd" id="1_0sr1o"]
|
||||
[ext_resource type="PackedScene" uid="uid://cvx4ot7ugyprk" path="res://scenes/ui/pause_menu.tscn" id="1_7h61r"]
|
||||
[ext_resource type="Theme" uid="uid://c6kkopjj3snag" path="res://themes/main_menu.theme.tres" id="2_0sr1o"]
|
||||
|
||||
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_kelw5"]
|
||||
sky_top_color = Color(0.039215688, 0.078431375, 0.15686275, 1)
|
||||
sky_horizon_color = Color(0.07058824, 0.1882353, 0.2509804, 1)
|
||||
ground_bottom_color = Color(0.019607844, 0.039215688, 0.07058824, 1)
|
||||
ground_horizon_color = Color(0.07058824, 0.1882353, 0.2509804, 1)
|
||||
|
||||
[sub_resource type="Sky" id="Sky_lfrn8"]
|
||||
sky_material = SubResource("ProceduralSkyMaterial_kelw5")
|
||||
|
||||
[sub_resource type="Environment" id="Environment_5i0tg"]
|
||||
background_mode = 2
|
||||
sky = SubResource("Sky_lfrn8")
|
||||
ambient_light_source = 2
|
||||
ambient_light_color = Color(0.2, 0.22, 0.35, 1)
|
||||
ambient_light_energy = 0.4
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_bdhmt"]
|
||||
albedo_color = Color(0.07450981, 0.16470589, 0.2, 1)
|
||||
roughness = 0.95
|
||||
|
||||
[sub_resource type="PlaneMesh" id="PlaneMesh_87uf6"]
|
||||
size = Vector2(60, 60)
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_2a8rs"]
|
||||
albedo_color = Color(0.18039216, 0.9019608, 0.77254903, 1)
|
||||
metallic = 0.1
|
||||
roughness = 0.4
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_4j704"]
|
||||
size = Vector3(2, 2, 2)
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_kp23o"]
|
||||
albedo_color = Color(0.48235294, 0.41960785, 0.9607843, 1)
|
||||
metallic = 0.1
|
||||
roughness = 0.5
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_5jirj"]
|
||||
size = Vector3(1.2, 3.4, 1.2)
|
||||
|
||||
[node name="Game" type="Node3D" unique_id=1106458558]
|
||||
script = ExtResource("1_0sr1o")
|
||||
|
||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="." unique_id=1519444008]
|
||||
environment = SubResource("Environment_5i0tg")
|
||||
|
||||
[node name="Sun" type="DirectionalLight3D" parent="." unique_id=1139733157]
|
||||
transform = Transform3D(-0.6946583, 0.53457373, -0.48133233, 0, 0.66913056, 0.74314487, 0.7193399, 0.5162317, -0.46481708, 0, 0, 0)
|
||||
light_color = Color(0.7490196, 0.9019608, 1, 1)
|
||||
light_energy = 0.9
|
||||
shadow_enabled = true
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="." unique_id=2037025428]
|
||||
transform = Transform3D(0.809017, -0.18163563, 0.559017, 0, 0.95105654, 0.309017, -0.58778524, -0.25, 0.7694209, 6.5, 4.2, 8.5)
|
||||
current = true
|
||||
|
||||
[node name="Ground" type="MeshInstance3D" parent="." unique_id=1318815356]
|
||||
material_override = SubResource("StandardMaterial3D_bdhmt")
|
||||
mesh = SubResource("PlaneMesh_87uf6")
|
||||
|
||||
[node name="BoxA" type="MeshInstance3D" parent="." unique_id=1331389928]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
||||
material_override = SubResource("StandardMaterial3D_2a8rs")
|
||||
mesh = SubResource("BoxMesh_4j704")
|
||||
|
||||
[node name="BoxB" type="MeshInstance3D" parent="." unique_id=535287837]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.2, 1.7, -2.4)
|
||||
material_override = SubResource("StandardMaterial3D_kp23o")
|
||||
mesh = SubResource("BoxMesh_5jirj")
|
||||
|
||||
[node name="PauseMenu" parent="." unique_id=1649378803 instance=ExtResource("1_7h61r")]
|
||||
|
||||
[node name="Hud" type="CanvasLayer" parent="." unique_id=824330719]
|
||||
|
||||
[node name="Hint" type="Label" parent="Hud" unique_id=47403933]
|
||||
offset_left = 40.0
|
||||
offset_top = 40.0
|
||||
offset_right = 279.0
|
||||
offset_bottom = 63.0
|
||||
theme = ExtResource("2_0sr1o")
|
||||
theme_override_colors/font_color = Color(0.56078434, 0.64705884, 0.7294118, 1)
|
||||
theme_override_font_sizes/font_size = 18
|
||||
text = "Сцена-заглушка. Esc — пауза."
|
||||
@@ -0,0 +1,107 @@
|
||||
[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://bvimo3kgmefgf" path="res://scripts/game/vault_view.gd" id="2_mkhle"]
|
||||
[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"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_lvdr8"]
|
||||
content_margin_left = 22.0
|
||||
content_margin_top = 12.0
|
||||
content_margin_right = 22.0
|
||||
content_margin_bottom = 12.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 = 12
|
||||
corner_radius_top_right = 12
|
||||
corner_radius_bottom_right = 12
|
||||
corner_radius_bottom_left = 12
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_m0p8k"]
|
||||
content_margin_left = 20.0
|
||||
content_margin_top = 14.0
|
||||
content_margin_right = 20.0
|
||||
content_margin_bottom = 12.0
|
||||
bg_color = Color(0.043137256, 0.07450981, 0.13333334, 0.9019608)
|
||||
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 = 14
|
||||
corner_radius_top_right = 14
|
||||
corner_radius_bottom_right = 14
|
||||
corner_radius_bottom_left = 14
|
||||
|
||||
[node name="Vault" type="Node2D" unique_id=1382797618]
|
||||
script = ExtResource("1_o8yry")
|
||||
|
||||
[node name="View" type="Node2D" parent="." unique_id=1238774489]
|
||||
script = ExtResource("2_mkhle")
|
||||
|
||||
[node name="Camera" type="Camera2D" parent="." unique_id=702468079]
|
||||
script = ExtResource("3_x7j0k")
|
||||
|
||||
[node name="Hud" type="CanvasLayer" parent="." unique_id=1492666604]
|
||||
|
||||
[node name="Root" type="Control" parent="Hud" unique_id=344458851]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
mouse_filter = 2
|
||||
theme = ExtResource("4_sch52")
|
||||
|
||||
[node name="TopBar" type="PanelContainer" parent="Hud/Root" unique_id=54306824]
|
||||
layout_mode = 0
|
||||
offset_left = 36.0
|
||||
offset_top = 36.0
|
||||
offset_right = 36.0
|
||||
offset_bottom = 36.0
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_lvdr8")
|
||||
|
||||
[node name="Stats" type="HBoxContainer" parent="Hud/Root/TopBar" unique_id=1335064924]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 34
|
||||
|
||||
[node name="BottomAnchor" type="MarginContainer" parent="Hud/Root" unique_id=1579352404]
|
||||
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/BottomAnchor" unique_id=1936091014]
|
||||
layout_mode = 2
|
||||
mouse_filter = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="BuildBar" type="PanelContainer" parent="Hud/Root/BottomAnchor/Row" unique_id=2023620303]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 8
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_m0p8k")
|
||||
|
||||
[node name="Panel" type="VBoxContainer" parent="Hud/Root/BottomAnchor/Row/BuildBar" unique_id=1051865182]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 10
|
||||
|
||||
[node name="Tools" type="HBoxContainer" parent="Hud/Root/BottomAnchor/Row/BuildBar/Panel" unique_id=375147046]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 8
|
||||
alignment = 1
|
||||
|
||||
[node name="Status" type="Label" parent="Hud/Root/BottomAnchor/Row/BuildBar/Panel" unique_id=1253597500]
|
||||
layout_mode = 2
|
||||
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="PauseMenu" parent="." unique_id=1649378803 instance=ExtResource("5_lffpp")]
|
||||
Reference in New Issue
Block a user