diff --git a/Fonts/ComicSansMS3.ttf b/Fonts/ComicSansMS3.ttf deleted file mode 100644 index da55369..0000000 Binary files a/Fonts/ComicSansMS3.ttf and /dev/null differ diff --git a/Fonts/ComicSansMS3.ttf.import b/Fonts/ComicSansMS3.ttf.import deleted file mode 100644 index 3c13aae..0000000 --- a/Fonts/ComicSansMS3.ttf.import +++ /dev/null @@ -1,35 +0,0 @@ -[remap] - -importer="font_data_dynamic" -type="FontFile" -uid="uid://bns5c6hocyjua" -path="res://.godot/imported/ComicSansMS3.ttf-96b759465ff31d11f80283a7c12539ca.fontdata" - -[deps] - -source_file="res://Fonts/ComicSansMS3.ttf" -dest_files=["res://.godot/imported/ComicSansMS3.ttf-96b759465ff31d11f80283a7c12539ca.fontdata"] - -[params] - -Rendering=null -antialiasing=1 -generate_mipmaps=false -disable_embedded_bitmaps=true -multichannel_signed_distance_field=false -msdf_pixel_range=8 -msdf_size=48 -allow_system_fallback=true -force_autohinter=false -hinting=1 -subpixel_positioning=4 -keep_rounding_remainders=true -oversampling=0.0 -Fallbacks=null -fallbacks=[] -Compress=null -compress=true -preload=[] -language_support={} -script_support={} -opentype_features={} diff --git a/Fonts/Playful Boxes.otf b/Fonts/Playful Boxes.otf new file mode 100644 index 0000000..81eae1e Binary files /dev/null and b/Fonts/Playful Boxes.otf differ diff --git a/Fonts/comicz.ttf.import b/Fonts/Playful Boxes.otf.import similarity index 65% rename from Fonts/comicz.ttf.import rename to Fonts/Playful Boxes.otf.import index 09fd05c..f55cf82 100644 --- a/Fonts/comicz.ttf.import +++ b/Fonts/Playful Boxes.otf.import @@ -2,13 +2,13 @@ importer="font_data_dynamic" type="FontFile" -uid="uid://cxiv86ha7xb6" -path="res://.godot/imported/comicz.ttf-66a741130a0c8d7e12d809da56e73bbf.fontdata" +uid="uid://wofoiaejxgsp" +path="res://.godot/imported/Playful Boxes.otf-113f6b887ec1f2b8d73de65734580dbc.fontdata" [deps] -source_file="res://Fonts/comicz.ttf" -dest_files=["res://.godot/imported/comicz.ttf-66a741130a0c8d7e12d809da56e73bbf.fontdata"] +source_file="res://Fonts/Playful Boxes.otf" +dest_files=["res://.godot/imported/Playful Boxes.otf-113f6b887ec1f2b8d73de65734580dbc.fontdata"] [params] diff --git a/Fonts/comici.ttf b/Fonts/comici.ttf deleted file mode 100644 index f1e7b0a..0000000 Binary files a/Fonts/comici.ttf and /dev/null differ diff --git a/Fonts/comici.ttf.import b/Fonts/comici.ttf.import deleted file mode 100644 index 1fe8d4b..0000000 --- a/Fonts/comici.ttf.import +++ /dev/null @@ -1,35 +0,0 @@ -[remap] - -importer="font_data_dynamic" -type="FontFile" -uid="uid://bn4w716pu11lj" -path="res://.godot/imported/comici.ttf-66bd62e0af47442ee6f5c29193ae1405.fontdata" - -[deps] - -source_file="res://Fonts/comici.ttf" -dest_files=["res://.godot/imported/comici.ttf-66bd62e0af47442ee6f5c29193ae1405.fontdata"] - -[params] - -Rendering=null -antialiasing=1 -generate_mipmaps=false -disable_embedded_bitmaps=true -multichannel_signed_distance_field=false -msdf_pixel_range=8 -msdf_size=48 -allow_system_fallback=true -force_autohinter=false -hinting=1 -subpixel_positioning=4 -keep_rounding_remainders=true -oversampling=0.0 -Fallbacks=null -fallbacks=[] -Compress=null -compress=true -preload=[] -language_support={} -script_support={} -opentype_features={} diff --git a/Fonts/comicz.ttf b/Fonts/comicz.ttf deleted file mode 100644 index e47168d..0000000 Binary files a/Fonts/comicz.ttf and /dev/null differ diff --git a/Fonts/design.graffiti.comicsansms.ttf b/Fonts/design.graffiti.comicsansms.ttf deleted file mode 100644 index 6333d26..0000000 Binary files a/Fonts/design.graffiti.comicsansms.ttf and /dev/null differ diff --git a/Fonts/design.graffiti.comicsansms.ttf.import b/Fonts/design.graffiti.comicsansms.ttf.import deleted file mode 100644 index d9ed878..0000000 --- a/Fonts/design.graffiti.comicsansms.ttf.import +++ /dev/null @@ -1,35 +0,0 @@ -[remap] - -importer="font_data_dynamic" -type="FontFile" -uid="uid://cqj7ianpr6jau" -path="res://.godot/imported/design.graffiti.comicsansms.ttf-6b5fd3e9dc5336099f793666df4ffc33.fontdata" - -[deps] - -source_file="res://Fonts/design.graffiti.comicsansms.ttf" -dest_files=["res://.godot/imported/design.graffiti.comicsansms.ttf-6b5fd3e9dc5336099f793666df4ffc33.fontdata"] - -[params] - -Rendering=null -antialiasing=1 -generate_mipmaps=false -disable_embedded_bitmaps=true -multichannel_signed_distance_field=false -msdf_pixel_range=8 -msdf_size=48 -allow_system_fallback=true -force_autohinter=false -hinting=1 -subpixel_positioning=4 -keep_rounding_remainders=true -oversampling=0.0 -Fallbacks=null -fallbacks=[] -Compress=null -compress=true -preload=[] -language_support={} -script_support={} -opentype_features={} diff --git a/Fonts/design.graffiti.comicsansmsgras.ttf b/Fonts/design.graffiti.comicsansmsgras.ttf deleted file mode 100644 index b3919d7..0000000 Binary files a/Fonts/design.graffiti.comicsansmsgras.ttf and /dev/null differ diff --git a/Fonts/design.graffiti.comicsansmsgras.ttf.import b/Fonts/design.graffiti.comicsansmsgras.ttf.import deleted file mode 100644 index f139b42..0000000 --- a/Fonts/design.graffiti.comicsansmsgras.ttf.import +++ /dev/null @@ -1,35 +0,0 @@ -[remap] - -importer="font_data_dynamic" -type="FontFile" -uid="uid://cafeq0txk8o1p" -path="res://.godot/imported/design.graffiti.comicsansmsgras.ttf-ab7fcd3a4b4dcda31884c957a19862a4.fontdata" - -[deps] - -source_file="res://Fonts/design.graffiti.comicsansmsgras.ttf" -dest_files=["res://.godot/imported/design.graffiti.comicsansmsgras.ttf-ab7fcd3a4b4dcda31884c957a19862a4.fontdata"] - -[params] - -Rendering=null -antialiasing=1 -generate_mipmaps=false -disable_embedded_bitmaps=true -multichannel_signed_distance_field=false -msdf_pixel_range=8 -msdf_size=48 -allow_system_fallback=true -force_autohinter=false -hinting=1 -subpixel_positioning=4 -keep_rounding_remainders=true -oversampling=0.0 -Fallbacks=null -fallbacks=[] -Compress=null -compress=true -preload=[] -language_support={} -script_support={} -opentype_features={} diff --git a/Scenes/main_menu.tscn b/Scenes/main_menu.tscn new file mode 100644 index 0000000..6d2e33b --- /dev/null +++ b/Scenes/main_menu.tscn @@ -0,0 +1,67 @@ +[gd_scene load_steps=6 format=3 uid="uid://cmhvni5njpmee"] + +[ext_resource type="Script" uid="uid://cbdokimy0qarg" path="res://Scripts/MainMenu.cs" id="1_1ehe0"] +[ext_resource type="FontFile" uid="uid://wofoiaejxgsp" path="res://Fonts/Playful Boxes.otf" id="1_28flt"] +[ext_resource type="Texture2D" uid="uid://d2wi2cs20q2b6" path="res://Parasitic_God.png" id="1_48xlc"] +[ext_resource type="PackedScene" uid="uid://bfil8sd154327" path="res://Scenes/Main/Main.tscn" id="2_ce3w2"] + +[sub_resource type="LabelSettings" id="LabelSettings_48xlc"] +font = ExtResource("1_28flt") +font_size = 72 +outline_size = 8 +outline_color = Color(0.48, 0.408, 0, 1) + +[node name="MainMenu" type="CanvasLayer" node_paths=PackedStringArray("_startButton", "_quitButton")] +script = ExtResource("1_1ehe0") +_gameScene = ExtResource("2_ce3w2") +_startButton = NodePath("CenterContainer/VBoxContainer/Play") +_quitButton = NodePath("CenterContainer/VBoxContainer/Exit") + +[node name="Control" 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="TextureRect" type="TextureRect" parent="Control"] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +size_flags_horizontal = 4 +size_flags_vertical = 4 +texture = ExtResource("1_48xlc") +expand_mode = 2 +stretch_mode = 5 + +[node name="CenterContainer" type="CenterContainer" parent="."] +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer"] +layout_mode = 2 + +[node name="Title" type="Label" parent="CenterContainer/VBoxContainer"] +layout_mode = 2 +size_flags_vertical = 0 +size_flags_stretch_ratio = 0.0 +text = "PARASITIC GOD" +label_settings = SubResource("LabelSettings_48xlc") + +[node name="Play" type="Button" parent="CenterContainer/VBoxContainer"] +layout_mode = 2 +size_flags_stretch_ratio = 0.0 +theme_override_font_sizes/font_size = 30 +text = "Play" + +[node name="Exit" type="Button" parent="CenterContainer/VBoxContainer"] +layout_mode = 2 +theme_override_font_sizes/font_size = 30 +text = "Exit" diff --git a/Scripts/MainMenu.cs b/Scripts/MainMenu.cs new file mode 100644 index 0000000..bc7264d --- /dev/null +++ b/Scripts/MainMenu.cs @@ -0,0 +1,52 @@ +using Godot; + +namespace ParasiticGod.Scripts; + +public partial class MainMenu : Node +{ + [Export] private PackedScene _gameScene; + [Export] private Button _startButton; + [Export] private Button _quitButton; + + public override void _Ready() + { + if (_startButton != null) + { + _startButton.Pressed += OnStartButtonPressed; + } + + if (_quitButton != null) + { + _quitButton.Pressed += OnQuitButtonPressed; + } + } + + public override void _ExitTree() + { + if (_startButton != null) + { + _startButton.Pressed -= OnStartButtonPressed; + } + + if (_quitButton != null) + { + _quitButton.Pressed -= OnQuitButtonPressed; + } + } + + private void OnStartButtonPressed() + { + if (_gameScene == null) + { + GD.PrintErr("Game scene is not assigned in MainMenu."); + return; + } + + GetTree().ChangeSceneToPacked(_gameScene); + } + + private void OnQuitButtonPressed() + { + GetTree().Quit(); + } +} \ No newline at end of file diff --git a/Scripts/MainMenu.cs.uid b/Scripts/MainMenu.cs.uid new file mode 100644 index 0000000..90cbb0f --- /dev/null +++ b/Scripts/MainMenu.cs.uid @@ -0,0 +1 @@ +uid://cbdokimy0qarg diff --git a/project.godot b/project.godot index 1efa6e9..2b02f1b 100644 --- a/project.godot +++ b/project.godot @@ -11,7 +11,7 @@ config_version=5 [application] config/name="Parasitic God" -run/main_scene="uid://bfil8sd154327" +run/main_scene="uid://cmhvni5njpmee" config/features=PackedStringArray("4.4", "C#", "GL Compatibility") boot_splash/show_image=false boot_splash/fullsize=false