init commit

This commit is contained in:
2025-05-12 18:07:43 -07:00
commit b410345c18
1023 changed files with 57521 additions and 0 deletions
+509
View File
@@ -0,0 +1,509 @@
[gd_scene load_steps=19 format=3 uid="uid://dkhdees4pr5ld"]
[ext_resource type="Script" path="res://Scripts/MainMenu/GameHandler.cs" id="1_20t5a"]
[ext_resource type="PackedScene" uid="uid://cvqenrawdv0ds" path="res://Scenes/Map0.tscn" id="3_owk3f"]
[ext_resource type="PackedScene" uid="uid://cqmet58p8q5w" path="res://Prefab/sun.tscn" id="4_lus38"]
[ext_resource type="Script" path="res://Scripts/Singleton/ItemStats.cs" id="5_30ijp"]
[ext_resource type="PackedScene" uid="uid://bdiyyfiwtdsoy" path="res://Prefab/Players/inventory.tscn" id="5_hwm58"]
[ext_resource type="Script" path="res://Scripts/Game/Tools/SelectTool.cs" id="6_0ov64"]
[ext_resource type="PackedScene" uid="uid://beh0wq5p0c1rk" path="res://Prefab/UI/select_tool_frame.tscn" id="7_g4b7o"]
[ext_resource type="Script" path="res://Scripts/MainMenu/Settings.cs" id="12_e3apo"]
[ext_resource type="Script" path="res://Scripts/Game/Alert.cs" id="12_lomrb"]
[ext_resource type="Script" path="res://Scripts/MainMenu/MainMenu.cs" id="13_6j6ft"]
[ext_resource type="Script" path="res://Scripts/MainMenu/SessionHandler.cs" id="13_heag8"]
[ext_resource type="Script" path="res://Scripts/MainMenu/PreGame.cs" id="14_l3mgt"]
[ext_resource type="PackedScene" uid="uid://ckc4r27138xrb" path="res://Prefab/Players/main_player.tscn" id="15_rldub"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_7b25o"]
bg_color = Color(0.203922, 0.627451, 0.317647, 1)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_fu3ib"]
vertex_color_use_as_albedo = true
albedo_color = Color(0, 0.701961, 0.8, 1)
emission_enabled = true
emission = Color(0.701961, 0, 0.439216, 1)
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_qlsfg"]
sky_top_color = Color(0.231373, 0.447059, 0.745098, 1)
[sub_resource type="Sky" id="Sky_atwgd"]
sky_material = SubResource("ProceduralSkyMaterial_qlsfg")
[sub_resource type="Environment" id="Environment_2pet3"]
background_mode = 2
sky = SubResource("Sky_atwgd")
ambient_light_source = 3
ambient_light_color = Color(0.431373, 0.431373, 0.431373, 1)
reflected_light_source = 2
tonemap_mode = 3
[node name="GameRoot" type="Node"]
[node name="Camera3D" type="Camera3D" parent="."]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, -0.097, 400, 0.121)
[node name="Game" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0408783, -0.554741, -0.199669)
script = ExtResource("1_20t5a")
MapList = Array[PackedScene]([ExtResource("3_owk3f")])
Player = ExtResource("15_rldub")
Sun = ExtResource("4_lus38")
[node name="PickupItems" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.347809, 0, 0.331299)
script = ExtResource("5_30ijp")
[node name="UI" type="Control" parent="."]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="GameUI" type="Control" parent="UI"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Game" type="Control" parent="UI/GameUI"]
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="HealthBar" type="ProgressBar" parent="UI/GameUI/Game"]
custom_minimum_size = Vector2(0, 4)
layout_mode = 1
anchors_preset = 12
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = -4.0
grow_horizontal = 2
grow_vertical = 0
theme_override_styles/fill = SubResource("StyleBoxFlat_7b25o")
value = 50.0
show_percentage = false
[node name="StaminaBar" type="ProgressBar" parent="UI/GameUI/Game"]
custom_minimum_size = Vector2(0, 4)
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0
offset_bottom = 4.0
grow_horizontal = 2
theme_override_styles/fill = SubResource("StyleBoxFlat_7b25o")
value = 50.0
show_percentage = false
[node name="ToolBar" type="VBoxContainer" parent="UI/GameUI/Game"]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -210.0
offset_top = -310.0
offset_right = -10.0
offset_bottom = -10.0
grow_horizontal = 0
grow_vertical = 0
alignment = 2
[node name="SelectTool" type="Label" parent="UI/GameUI/Game/ToolBar"]
layout_mode = 2
text = "1. Select Tool"
horizontal_alignment = 2
[node name="Script" type="Node3D" parent="UI/GameUI/Game/ToolBar/SelectTool"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.104448, 0.0912284, 0.0584183)
script = ExtResource("6_0ov64")
SelectToolFrame = ExtResource("7_g4b7o")
HoverMaterial = SubResource("StandardMaterial3D_fu3ib")
[node name="Alerts" type="Control" parent="UI"]
layout_mode = 1
anchors_preset = 0
offset_left = 25.0
offset_right = 25.0
script = ExtResource("12_lomrb")
[node name="MainMenu" type="Control" parent="UI"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("13_6j6ft")
[node name="ButtonList" type="Control" parent="UI/MainMenu"]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -320.0
offset_top = -280.0
offset_right = -20.0
offset_bottom = -20.0
grow_horizontal = 0
grow_vertical = 0
[node name="VBoxContainer" type="VBoxContainer" parent="UI/MainMenu/ButtonList"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
alignment = 2
[node name="Settings" type="Button" parent="UI/MainMenu/ButtonList/VBoxContainer"]
layout_mode = 2
text = "Settings
"
[node name="JoinGame" type="Button" parent="UI/MainMenu/ButtonList/VBoxContainer"]
layout_mode = 2
text = "Join Game"
[node name="StartServer" type="Button" parent="UI/MainMenu/ButtonList/VBoxContainer"]
layout_mode = 2
text = "Start Server"
[node name="LoginFrame" type="Control" parent="UI/MainMenu"]
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Frame" type="Panel" parent="UI/MainMenu/LoginFrame" node_paths=PackedStringArray("UsernameBox", "PasswordBox")]
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -450.0
offset_top = -430.0
offset_right = 450.0
offset_bottom = -130.0
grow_horizontal = 2
grow_vertical = 0
script = ExtResource("13_heag8")
UsernameBox = NodePath("VBoxContainer/UserName/LineEdit")
PasswordBox = NodePath("VBoxContainer/Password/LineEdit")
[node name="VBoxContainer" type="VBoxContainer" parent="UI/MainMenu/LoginFrame/Frame"]
layout_mode = 0
offset_left = 50.0
offset_top = 50.0
offset_right = 850.0
offset_bottom = 254.0
[node name="UserName" type="Panel" parent="UI/MainMenu/LoginFrame/Frame/VBoxContainer"]
custom_minimum_size = Vector2(0, 100)
layout_mode = 2
[node name="Label" type="Label" parent="UI/MainMenu/LoginFrame/Frame/VBoxContainer/UserName"]
layout_mode = 0
offset_right = 400.0
offset_bottom = 100.0
text = "UserName"
horizontal_alignment = 1
vertical_alignment = 1
[node name="LineEdit" type="LineEdit" parent="UI/MainMenu/LoginFrame/Frame/VBoxContainer/UserName"]
layout_mode = 0
offset_left = 400.0
offset_top = 25.0
offset_right = 700.0
offset_bottom = 75.0
[node name="Password" type="Panel" parent="UI/MainMenu/LoginFrame/Frame/VBoxContainer"]
custom_minimum_size = Vector2(0, 100)
layout_mode = 2
[node name="Label" type="Label" parent="UI/MainMenu/LoginFrame/Frame/VBoxContainer/Password"]
layout_mode = 0
offset_right = 400.0
offset_bottom = 100.0
text = "Password"
horizontal_alignment = 1
vertical_alignment = 1
[node name="LineEdit" type="LineEdit" parent="UI/MainMenu/LoginFrame/Frame/VBoxContainer/Password"]
layout_mode = 0
offset_left = 400.0
offset_top = 25.0
offset_right = 700.0
offset_bottom = 75.0
secret = true
[node name="LoginButton" type="Button" parent="UI/MainMenu/LoginFrame"]
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -210.0
offset_top = -80.0
offset_right = -10.0
offset_bottom = -20.0
grow_horizontal = 2
grow_vertical = 0
text = "Login"
[node name="RegisterButton" type="Button" parent="UI/MainMenu/LoginFrame"]
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = 10.0
offset_top = -80.0
offset_right = 210.0
offset_bottom = -20.0
grow_horizontal = 2
grow_vertical = 0
text = "Register"
[node name="Host" type="TextEdit" parent="UI/MainMenu"]
custom_minimum_size = Vector2(300, 30)
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -640.0
offset_top = -88.0
offset_right = -340.0
offset_bottom = -58.0
grow_horizontal = 0
grow_vertical = 0
tooltip_text = "Host Address"
text = "127.0.0.1"
placeholder_text = "HOST"
middle_mouse_paste_enabled = false
scroll_past_end_of_file = true
[node name="SettingsFrame" type="Control" parent="UI"]
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Settings" type="TabContainer" parent="UI/SettingsFrame"]
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -500.0
offset_top = -730.0
offset_right = 500.0
offset_bottom = -130.0
grow_horizontal = 2
grow_vertical = 0
current_tab = 0
script = ExtResource("12_e3apo")
[node name="Game" type="Panel" parent="UI/SettingsFrame/Settings"]
layout_mode = 2
metadata/_tab_index = 0
[node name="ScrollContainer" type="ScrollContainer" parent="UI/SettingsFrame/Settings/Game"]
layout_mode = 2
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Vbox" type="VBoxContainer" parent="UI/SettingsFrame/Settings/Game/ScrollContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="Display" type="Panel" parent="UI/SettingsFrame/Settings"]
visible = false
layout_mode = 2
metadata/_tab_index = 1
[node name="ScrollContainer" type="ScrollContainer" parent="UI/SettingsFrame/Settings/Display"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Vbox" type="VBoxContainer" parent="UI/SettingsFrame/Settings/Display/ScrollContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="Audio" type="Panel" parent="UI/SettingsFrame/Settings"]
visible = false
layout_mode = 2
metadata/_tab_index = 2
[node name="ScrollContainer" type="ScrollContainer" parent="UI/SettingsFrame/Settings/Audio"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Vbox" type="VBoxContainer" parent="UI/SettingsFrame/Settings/Audio/ScrollContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="Input" type="Panel" parent="UI/SettingsFrame/Settings"]
visible = false
layout_mode = 2
metadata/_tab_index = 3
[node name="ScrollContainer" type="ScrollContainer" parent="UI/SettingsFrame/Settings/Input"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Vbox" type="VBoxContainer" parent="UI/SettingsFrame/Settings/Input/ScrollContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="About" type="Panel" parent="UI/SettingsFrame/Settings"]
visible = false
layout_mode = 2
metadata/_tab_index = 4
[node name="SaveButton" type="Button" parent="UI/SettingsFrame"]
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -210.0
offset_top = -80.0
offset_right = -10.0
offset_bottom = -20.0
grow_horizontal = 2
grow_vertical = 0
text = "Save Settings"
[node name="CancelButton" type="Button" parent="UI/SettingsFrame"]
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = 10.0
offset_top = -80.0
offset_right = 210.0
offset_bottom = -20.0
grow_horizontal = 2
grow_vertical = 0
text = "Cancel"
[node name="PreGame" type="Control" parent="UI"]
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("14_l3mgt")
Backpack = ExtResource("5_hwm58")
[node name="SelectedAbility" type="Label" parent="UI/PreGame"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 10.0
offset_top = 1050.0
offset_right = -1742.0
offset_bottom = -7.0
grow_horizontal = 2
grow_vertical = 2
text = "Current Ability : None"
[node name="ButtonList" type="Control" parent="UI/PreGame"]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -320.0
offset_top = -280.0
offset_right = -20.0
offset_bottom = -20.0
grow_horizontal = 0
grow_vertical = 0
[node name="VBoxContainer" type="VBoxContainer" parent="UI/PreGame/ButtonList"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
alignment = 2
[node name="Ability" type="Button" parent="UI/PreGame/ButtonList/VBoxContainer"]
layout_mode = 2
text = "Ability
"
[node name="Spawn" type="Button" parent="UI/PreGame/ButtonList/VBoxContainer"]
layout_mode = 2
text = "Spawn"
[node name="Lighting" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_2pet3")
[node name="GameSpawner" type="MultiplayerSpawner" parent="."]
_spawnable_scenes = PackedStringArray("res://Prefab/Players/main_player.tscn", "res://Prefab/bullet.tscn", "res://Scenes/Map0.tscn", "res://Prefab/sun.tscn")
spawn_path = NodePath("../Game")
spawn_limit = 5000
[node name="ItemSpawner" type="MultiplayerSpawner" parent="."]
_spawnable_scenes = PackedStringArray("res://Prefab/Pickups/pickup_item.tscn")
spawn_path = NodePath("../PickupItems")
spawn_limit = 5000
[connection signal="button_down" from="UI/MainMenu/ButtonList/VBoxContainer/Settings" to="UI/MainMenu" method="_on_settings_button_down"]
[connection signal="pressed" from="UI/MainMenu/ButtonList/VBoxContainer/JoinGame" to="UI/MainMenu" method="_on_join_game_pressed"]
[connection signal="pressed" from="UI/MainMenu/ButtonList/VBoxContainer/StartServer" to="UI/MainMenu" method="_on_start_server_pressed"]
[connection signal="button_down" from="UI/MainMenu/LoginFrame/LoginButton" to="UI/MainMenu/LoginFrame/Frame" method="onLogin"]
[connection signal="button_down" from="UI/MainMenu/LoginFrame/RegisterButton" to="UI/MainMenu/LoginFrame/Frame" method="onRegister"]
[connection signal="button_down" from="UI/SettingsFrame/SaveButton" to="UI/SettingsFrame/Settings" method="OnSaveButtonDown"]
[connection signal="button_down" from="UI/SettingsFrame/CancelButton" to="UI/SettingsFrame/Settings" method="OnCancelButtonDown"]
[connection signal="pressed" from="UI/PreGame/ButtonList/VBoxContainer/Ability" to="UI/PreGame" method="_on_ability_pressed"]
[connection signal="pressed" from="UI/PreGame/ButtonList/VBoxContainer/Spawn" to="UI/PreGame" method="_on_player_spawn_pressed"]
BIN
View File
Binary file not shown.
+138
View File
File diff suppressed because one or more lines are too long