mirror of
https://github.com/Steffo99/pineapple-surf.git
synced 2024-11-25 01:04:18 +00:00
Create basic menu scene
This commit is contained in:
parent
18df124fd0
commit
55516992bd
5 changed files with 175 additions and 3 deletions
BIN
assets/grass_menu_tex.png
(Stored with Git LFS)
Normal file
BIN
assets/grass_menu_tex.png
(Stored with Git LFS)
Normal file
Binary file not shown.
34
assets/grass_menu_tex.png.import
Normal file
34
assets/grass_menu_tex.png.import
Normal file
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bxyximtgui1ux"
|
||||
path="res://.godot/imported/grass_menu_tex.png-d1d46f8d90bb3c70a517784ed7c5ab24.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/grass_menu_tex.png"
|
||||
dest_files=["res://.godot/imported/grass_menu_tex.png-d1d46f8d90bb3c70a517784ed7c5ab24.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/bptc_ldr=0
|
||||
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
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
importer="font_data_dynamic"
|
||||
type="FontFile"
|
||||
uid="uid://0a45xjjn77ym"
|
||||
uid="uid://dvfq5l72ynw4s"
|
||||
path="res://.godot/imported/pixel-operator.ttf-7dca05f861a9e35aa541a83a53d92665.fontdata"
|
||||
|
||||
[deps]
|
||||
|
@ -20,8 +20,8 @@ msdf_pixel_range=8
|
|||
msdf_size=48
|
||||
allow_system_fallback=true
|
||||
force_autohinter=false
|
||||
hinting=1
|
||||
subpixel_positioning=1
|
||||
hinting=0
|
||||
subpixel_positioning=0
|
||||
oversampling=0.0
|
||||
Fallbacks=null
|
||||
fallbacks=[]
|
||||
|
|
134
menu/Menu.tscn
Normal file
134
menu/Menu.tscn
Normal file
|
@ -0,0 +1,134 @@
|
|||
[gd_scene load_steps=10 format=3 uid="uid://c4sm1qw01u1xq"]
|
||||
|
||||
[ext_resource type="FontFile" uid="uid://dvfq5l72ynw4s" path="res://assets/pixel-operator.ttf" id="1_43bge"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxyximtgui1ux" path="res://assets/grass_menu_tex.png" id="2_cmvxt"]
|
||||
|
||||
[sub_resource type="FontVariation" id="FontVariation_srw5c"]
|
||||
base_font = ExtResource("1_43bge")
|
||||
variation_embolden = 0.01
|
||||
spacing_bottom = 2
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_cqq4b"]
|
||||
bg_color = Color(0.670588, 0.317647, 0.188235, 0.627451)
|
||||
border_color = Color(0.670588, 0.317647, 0.188235, 0.627451)
|
||||
corner_radius_top_left = 2
|
||||
corner_radius_top_right = 2
|
||||
corner_radius_bottom_right = 2
|
||||
corner_radius_bottom_left = 2
|
||||
corner_detail = 2
|
||||
shadow_color = Color(0, 0, 0, 1)
|
||||
anti_aliasing = false
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_t0r2r"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_msefr"]
|
||||
bg_color = Color(0.388235, 0.670588, 0.247059, 1)
|
||||
corner_radius_top_left = 2
|
||||
corner_radius_top_right = 2
|
||||
corner_radius_bottom_right = 2
|
||||
corner_radius_bottom_left = 2
|
||||
corner_detail = 2
|
||||
anti_aliasing = false
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_o1gp3"]
|
||||
bg_color = Color(0.156863, 0.207843, 0.25098, 1)
|
||||
corner_radius_top_left = 2
|
||||
corner_radius_top_right = 2
|
||||
corner_radius_bottom_right = 2
|
||||
corner_radius_bottom_left = 2
|
||||
corner_detail = 2
|
||||
anti_aliasing = false
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_xmx50"]
|
||||
bg_color = Color(0.388235, 0.670588, 0.247059, 1)
|
||||
border_color = Color(0.388235, 0.670588, 0.247059, 1)
|
||||
corner_radius_top_left = 2
|
||||
corner_radius_top_right = 2
|
||||
corner_radius_bottom_right = 2
|
||||
corner_radius_bottom_left = 2
|
||||
corner_detail = 2
|
||||
shadow_color = Color(1, 1, 1, 1)
|
||||
anti_aliasing = false
|
||||
|
||||
[sub_resource type="Theme" id="Theme_fanch"]
|
||||
Button/font_sizes/font_size = 16
|
||||
Button/fonts/font = SubResource("FontVariation_srw5c")
|
||||
Button/styles/disabled = SubResource("StyleBoxFlat_cqq4b")
|
||||
Button/styles/focus = SubResource("StyleBoxEmpty_t0r2r")
|
||||
Button/styles/hover = SubResource("StyleBoxFlat_msefr")
|
||||
Button/styles/normal = SubResource("StyleBoxFlat_o1gp3")
|
||||
Button/styles/pressed = SubResource("StyleBoxFlat_xmx50")
|
||||
Label/colors/font_color = Color(1, 1, 1, 1)
|
||||
Label/constants/line_spacing = 2
|
||||
Label/font_sizes/font_size = 16
|
||||
Label/fonts/font = ExtResource("1_43bge")
|
||||
|
||||
[node name="Menu" type="Control"]
|
||||
texture_filter = 1
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
size_flags_vertical = 3
|
||||
theme = SubResource("Theme_fanch")
|
||||
|
||||
[node name="Panel" type="TextureRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("2_cmvxt")
|
||||
stretch_mode = 1
|
||||
|
||||
[node name="Content" type="VBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="Authors" type="Label" parent="Content"]
|
||||
layout_mode = 2
|
||||
text = "A game by Ichicoro and Steffo"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Title" type="Label" parent="Content"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 6
|
||||
theme_override_font_sizes/font_size = 48
|
||||
text = "Harvest"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Control" type="Control" parent="Content"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 6
|
||||
|
||||
[node name="Play" type="Button" parent="Content/Control"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -13.0
|
||||
offset_top = -9.0
|
||||
offset_right = 13.0
|
||||
offset_bottom = 9.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 4
|
||||
theme_override_font_sizes/font_size = 0
|
||||
text = "Play"
|
||||
|
||||
[node name="Authors2" type="Label" parent="Content"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 1
|
||||
text = "Ludum Dare 52 - Harvest"
|
||||
horizontal_alignment = 1
|
|
@ -11,6 +11,7 @@ config_version=5
|
|||
[application]
|
||||
|
||||
config/name="LD52"
|
||||
run/main_scene="res://menu/Menu.tscn"
|
||||
config/features=PackedStringArray("4.0", "GL Compatibility")
|
||||
boot_splash/bg_color=Color(0.231373, 0.490196, 0.309804, 1)
|
||||
config/icon="res://assets/icon.svg"
|
||||
|
|
Loading…
Reference in a new issue