added a main menu

This commit is contained in:
2024-07-23 16:49:30 +02:00
parent a17e93d9e2
commit 4bb78cee2e
9 changed files with 165 additions and 2 deletions
Binary file not shown.
+33
View File
@@ -0,0 +1,33 @@
[remap]
importer="font_data_dynamic"
type="FontFile"
uid="uid://dxgnofummhosw"
path="res://.godot/imported/play_bold.ttf-01ef2d4a837ad426c71b343ff0726d97.fontdata"
[deps]
source_file="res://fonts/play_bold.ttf"
dest_files=["res://.godot/imported/play_bold.ttf-01ef2d4a837ad426c71b343ff0726d97.fontdata"]
[params]
Rendering=null
antialiasing=1
generate_mipmaps=false
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
hinting=1
subpixel_positioning=1
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
language_support={}
script_support={}
opentype_features={}
Binary file not shown.
+33
View File
@@ -0,0 +1,33 @@
[remap]
importer="font_data_dynamic"
type="FontFile"
uid="uid://d2tkoshxpw347"
path="res://.godot/imported/play_regular.ttf-923acfda0d8d8c618796c2897db63d76.fontdata"
[deps]
source_file="res://fonts/play_regular.ttf"
dest_files=["res://.godot/imported/play_regular.ttf-923acfda0d8d8c618796c2897db63d76.fontdata"]
[params]
Rendering=null
antialiasing=1
generate_mipmaps=false
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
hinting=1
subpixel_positioning=1
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
language_support={}
script_support={}
opentype_features={}
+1
View File
@@ -19,6 +19,7 @@ config/icon="res://icon.svg"
window/size/viewport_width=1920
window/size/viewport_height=1080
window/stretch/mode="viewport"
[rendering]
Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://btklbxi5j46q3"
path="res://.godot/imported/skeletonbg.webp-ecec28a53da35c5187673d900fe0e5e9.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://resources/backgrounds/skeletonbg.webp"
dest_files=["res://.godot/imported/skeletonbg.webp-ecec28a53da35c5187673d900fe0e5e9.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
+13
View File
@@ -0,0 +1,13 @@
extends Control
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func _on_start_game_btn_pressed():
print("start game!")
+51 -2
View File
@@ -1,3 +1,52 @@
[gd_scene format=3 uid="uid://cstgejgqggfdo"]
[gd_scene load_steps=6 format=3 uid="uid://cstgejgqggfdo"]
[node name="Mainmenu" type="Node2D"]
[ext_resource type="Script" path="res://scenes/mainmenu.gd" id="1_oicw3"]
[ext_resource type="Texture2D" uid="uid://btklbxi5j46q3" path="res://resources/backgrounds/skeletonbg.webp" id="1_xlhmj"]
[ext_resource type="FontFile" uid="uid://d2tkoshxpw347" path="res://fonts/play_regular.ttf" id="2_cci21"]
[ext_resource type="FontFile" uid="uid://dxgnofummhosw" path="res://fonts/play_bold.ttf" id="3_pmnei"]
[sub_resource type="Theme" id="Theme_8qj38"]
Label/fonts/font = ExtResource("2_cci21")
[node name="MainMenu" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_oicw3")
[node name="Background" type="TextureRect" parent="."]
layout_mode = 0
offset_right = 40.0
offset_bottom = 40.0
texture = ExtResource("1_xlhmj")
[node name="GameTitle" type="Label" parent="."]
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0
offset_bottom = 350.0
grow_horizontal = 2
size_flags_vertical = 1
theme = SubResource("Theme_8qj38")
theme_override_fonts/font = ExtResource("3_pmnei")
theme_override_font_sizes/font_size = 222
text = "IDLE BREAKOUT"
horizontal_alignment = 1
vertical_alignment = 2
[node name="ButtonContainer" type="VBoxContainer" parent="."]
layout_mode = 0
offset_left = 120.0
offset_top = 382.0
offset_right = 790.0
offset_bottom = 715.0
[node name="StartGame" type="Button" parent="ButtonContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 64
text = "Start Game"
[connection signal="pressed" from="ButtonContainer/StartGame" to="." method="_on_start_game_btn_pressed"]