diff --git a/addons/.gitkeep b/addons/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/assets/.gitkeep b/assets/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/project.godot b/project.godot new file mode 100644 index 0000000..34a8a85 --- /dev/null +++ b/project.godot @@ -0,0 +1,54 @@ +; Engine configuration file. +; It's best edited using the editor UI and not directly, +; but it can also be edited by hand. + +config_version=5 + +[application] + +config/name="AGP-Game" +run/main_scene="res://scenes/main_menu.tscn" +config/features=PackedStringArray("4.6.2") + +[autoload] + +[display] + +window/size/viewport_width=1920 +window/size/viewport_height=1080 +window/stretch/mode="canvas_items" + +[rendering] + +renderer/rendering_method="gl_compatibility" +renderer/rendering_method.mobile="gl_compatibility" + +[export] + +[export_options] + +name="AGP-Game" + +[export_options/platform:windows_desktop] + +bits_format=1 +export_format=0 +export_path="" +options="binary_format/relax_conformance=true" + +[export_options/platform:linux/x11] + +export_format=0 +export_path="" +options="binary_format/relax_conformance=true" + +[export_options/platform:mac_os] + +export_format=0 +export_path="" +options="binary_format/relax_conformance=true" + +[export_options/platform:web] + +export_format=0 +export_path="" diff --git a/scenes/.gitkeep b/scenes/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/scenes/main_menu.tscn b/scenes/main_menu.tscn new file mode 100644 index 0000000..9fb5cc7 --- /dev/null +++ b/scenes/main_menu.tscn @@ -0,0 +1,40 @@ +[gd_scene load_steps=2 format=3 uid="uid://main_menu"] + +[ext_resource type="Script" path="res://scripts/main_menu.gd" id="1_main"] + +[node name="MainMenu" type="Control"] +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +script = ExtResource("1_main") + +[node name="CenterContainer" type="CenterContainer" parent="."] +layout_mode = 3 +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 = 1 +theme_override_constants/separation = 16 +size_flags_horizontal = 4 + +[node name="TitleLabel" type="Label" parent="CenterContainer/VBoxContainer"] +layout_mode = 1 +text = "AGP Game" +horizontal_alignment = 1 +theme_override_font_sizes/font_size = 72 + +[node name="PlayButton" type="Button" parent="CenterContainer/VBoxContainer"] +layout_mode = 1 +text = "Play" +size_flags_horizontal = 4 + +[node name="QuitButton" type="Button" parent="CenterContainer/VBoxContainer"] +layout_mode = 1 +text = "Quit" +size_flags_horizontal = 4 diff --git a/scripts/.gitkeep b/scripts/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/scripts/main_menu.gd b/scripts/main_menu.gd new file mode 100644 index 0000000..c7131ae --- /dev/null +++ b/scripts/main_menu.gd @@ -0,0 +1,13 @@ +extends Control + + +func _ready(): + pass + + +func _on_play_button_pressed(): + get_tree().change_scene_to_file("res://scenes/game.tscn") + + +func _on_quit_button_pressed(): + get_tree().quit()