setting up menu

This commit is contained in:
2026-02-10 00:05:50 -05:00
parent 5f7c83c967
commit 5b7324ade4
30 changed files with 557 additions and 48 deletions

View File

@@ -0,0 +1,19 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://b2l55uknctgo6"
path="res://.godot/imported/Ranma Nibun-no-ichi Bakuretsu Rantouhen - King's Casino [Qk0v_NIqVPg].mp3-8e94ad88990d9a9add4bc0f85fa990c1.mp3str"
[deps]
source_file="res://assets/audio/music/game/Ranma Nibun-no-ichi Bakuretsu Rantouhen - King's Casino [Qk0v_NIqVPg].mp3"
dest_files=["res://.godot/imported/Ranma Nibun-no-ichi Bakuretsu Rantouhen - King's Casino [Qk0v_NIqVPg].mp3-8e94ad88990d9a9add4bc0f85fa990c1.mp3str"]
[params]
loop=false
loop_offset=0.0
bpm=0.0
beat_count=0
bar_beats=4

View File

@@ -0,0 +1,19 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://cphmtgjrvot1n"
path="res://.godot/imported/Discovery (Title Screen) - Sonic Mania [OST] [UZpxOFyEOZY].mp3-22b3d903a1fb8a51b9364efada9e9e51.mp3str"
[deps]
source_file="res://assets/audio/music/menus/Discovery (Title Screen) - Sonic Mania [OST] [UZpxOFyEOZY].mp3"
dest_files=["res://.godot/imported/Discovery (Title Screen) - Sonic Mania [OST] [UZpxOFyEOZY].mp3-22b3d903a1fb8a51b9364efada9e9e51.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4

View File

@@ -0,0 +1,19 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://df31l8x4fxwf0"
path="res://.godot/imported/Mario Kart Wii Music - Menu (Medley) [fN2dJP0WLDQ].mp3-441924e82909326119fa9f1a0e693115.mp3str"
[deps]
source_file="res://assets/audio/music/menus/Mario Kart Wii Music - Menu (Medley) [fN2dJP0WLDQ].mp3"
dest_files=["res://.godot/imported/Mario Kart Wii Music - Menu (Medley) [fN2dJP0WLDQ].mp3-441924e82909326119fa9f1a0e693115.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4

Binary file not shown.

View File

@@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://podscahsf0d4"
path="res://.godot/imported/MenuAccept.wav-731265d2bb63e5c01af6a463469c0dab.sample"
[deps]
source_file="res://assets/audio/sfx/MenuAccept.wav"
dest_files=["res://.godot/imported/MenuAccept.wav-731265d2bb63e5c01af6a463469c0dab.sample"]
[params]
force/8_bit=false
force/mono=false
force/max_rate=false
force/max_rate_hz=44100
edit/trim=false
edit/normalize=false
edit/loop_mode=0
edit/loop_begin=0
edit/loop_end=-1
compress/mode=2

Binary file not shown.

View File

@@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://cv5et4r5063yq"
path="res://.godot/imported/OuttaHere.wav-6c7af73672023bf19d9ee9a667a2d683.sample"
[deps]
source_file="res://assets/audio/sfx/OuttaHere.wav"
dest_files=["res://.godot/imported/OuttaHere.wav-6c7af73672023bf19d9ee9a667a2d683.sample"]
[params]
force/8_bit=false
force/mono=false
force/max_rate=false
force/max_rate_hz=44100
edit/trim=false
edit/normalize=false
edit/loop_mode=0
edit/loop_begin=0
edit/loop_end=-1
compress/mode=2

Binary file not shown.

View File

@@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://bamel88y0ebke"
path="res://.godot/imported/SpecialWarp.wav-3ab39e4274b45443b2312d8e2425adc5.sample"
[deps]
source_file="res://assets/audio/sfx/SpecialWarp.wav"
dest_files=["res://.godot/imported/SpecialWarp.wav-3ab39e4274b45443b2312d8e2425adc5.sample"]
[params]
force/8_bit=false
force/mono=false
force/max_rate=false
force/max_rate_hz=44100
edit/trim=false
edit/normalize=false
edit/loop_mode=0
edit/loop_begin=0
edit/loop_end=-1
compress/mode=2

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 MiB

View File

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cjo0jq8l0bh63"
path="res://.godot/imported/10-0_10.1.png-cb7477ebe10e3e5de223a2765ef5a3ea.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/visual/backgrounds/misc/10-0_10.1.png"
dest_files=["res://.godot/imported/10-0_10.1.png-cb7477ebe10e3e5de223a2765ef5a3ea.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 MiB

View File

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cr2blsvtrrqrk"
path="res://.godot/imported/10-12.jpg-c097af80b23ba4fed13f09df05b784ce.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/visual/backgrounds/misc/10-12.jpg"
dest_files=["res://.godot/imported/10-12.jpg-c097af80b23ba4fed13f09df05b784ce.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 MiB

View File

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cq8d3y1ouh51l"
path="res://.godot/imported/10-4.png-31b4be4be4bc7a37b35027a199bbba7d.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/visual/backgrounds/misc/10-4.png"
dest_files=["res://.godot/imported/10-4.png-31b4be4be4bc7a37b35027a199bbba7d.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 MiB

View File

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b0qibayc8b02i"
path="res://.godot/imported/10-6.png-486f1e21bb5339b7a64521b2d4f973b3.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/visual/backgrounds/misc/10-6.png"
dest_files=["res://.godot/imported/10-6.png-486f1e21bb5339b7a64521b2d4f973b3.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 MiB

View File

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://de02dtjn8ioiu"
path="res://.godot/imported/10-7.png-f23179ef71a8cad5f840be7c724a57e6.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/visual/backgrounds/misc/10-7.png"
dest_files=["res://.godot/imported/10-7.png-f23179ef71a8cad5f840be7c724a57e6.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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

View File

@@ -0,0 +1,31 @@
[gd_scene format=3 uid="uid://bef8re5x0kmmd"]
[ext_resource type="Texture2D" uid="uid://b0qibayc8b02i" path="res://assets/visual/backgrounds/misc/10-6.png" id="1_lcssi"]
[ext_resource type="AudioStream" uid="uid://b2l55uknctgo6" path="res://assets/audio/music/game/Ranma Nibun-no-ichi Bakuretsu Rantouhen - King's Casino [Qk0v_NIqVPg].mp3" id="2_ije4o"]
[node name="CometZap" type="Node2D" unique_id=1227404695]
[node name="CanvasLayer" type="CanvasLayer" parent="." unique_id=1005683026]
[node name="Control" type="Control" parent="CanvasLayer" unique_id=2022519285]
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="CanvasLayer/Control" unique_id=308962101]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("1_lcssi")
expand_mode = 1
[node name="BackgroundMusic" type="AudioStreamPlayer2D" parent="." unique_id=1814622732]
stream = ExtResource("2_ije4o")
autoplay = true
parameters/looping = true

View File

@@ -0,0 +1,56 @@
extends Control
var game_mode
var word_select
var main_buttons
var fade
var word_select_button = preload("res://scenes/objects/ui/word_select_button.tscn")
func check_text_files(path):
var dir = DirAccess.open(path)
if dir:
dir.list_dir_begin()
var file_name = dir.get_next()
while file_name != "":
if not dir.current_is_dir():
var set_name = file_name.trim_suffix(".txt").capitalize()
var new_select_button = word_select_button.instantiate()
new_select_button.text = set_name
#print(set_name)
word_select.add_child(new_select_button)
file_name = dir.get_next()
else:
print("An error occurred when trying to access the path.")
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
game_mode = null
fade = self.get_node("Fade")
fade.visible = true
main_buttons = self.get_node("MainButtons")
word_select = self.get_node("WordSelectScroll").get_node("WordSelect")
check_text_files("res://gameplay/word_sets")
var tween := create_tween()
tween.parallel().tween_property(fade, "modulate:a", 0, 0.5).set_trans(Tween.TRANS_SINE).set_ease(Tween.EASE_OUT)
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func open_word_menu():
pass
func _on_comet_pressed() -> void:
game_mode = "comet"
self.get_node("ButtonPress").play()
main_buttons.visible = false
word_select.visible = true
func _on_cascade_pressed() -> void:
game_mode = "cascade"
self.get_node("ButtonPress").play()
main_buttons.visible = false
word_select.visible = true

View File

@@ -0,0 +1 @@
uid://buqy4h8s5nhg7

View File

@@ -1,11 +1,10 @@
[gd_scene format=3 uid="uid://cb2i4ei3lihbh"]
[ext_resource type="Shader" uid="uid://b4yhwgv8l8djq" path="res://scroll.gdshader" id="1_3oan1"]
[ext_resource type="Texture2D" uid="uid://cfi22ymi85gjx" path="res://original data/images/menu/cascaded.png" id="2_0p6fv"]
[ext_resource type="Texture2D" uid="uid://cjgp2h3x616" path="res://original data/images/menu/cometd.png" id="3_maffk"]
[ext_resource type="Texture2D" uid="uid://di5qlm2pud86j" path="res://original data/images/menu/lessond.png" id="4_qgvwr"]
[ext_resource type="Texture2D" uid="uid://dqe4as5qrs3r6" path="res://original data/images/menu/tux_configd.png" id="5_1ct8e"]
[ext_resource type="Texture2D" uid="uid://y1rcm28rmliw" path="res://original data/images/menu/quitd.png" id="6_m1gal"]
[ext_resource type="Script" uid="uid://buqy4h8s5nhg7" path="res://scenes/menus/select_mode/select_mode.gd" id="1_avhy0"]
[ext_resource type="Texture2D" uid="uid://dew71sa7dwdnc" path="res://textures/tux typing +.png" id="2_3oan1"]
[ext_resource type="AudioStream" uid="uid://df31l8x4fxwf0" path="res://assets/audio/music/menus/Mario Kart Wii Music - Menu (Medley) [fN2dJP0WLDQ].mp3" id="3_xhbdh"]
[ext_resource type="AudioStream" uid="uid://podscahsf0d4" path="res://assets/audio/sfx/MenuAccept.wav" id="5_32ulc"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_aeitr"]
shader = ExtResource("1_3oan1")
@@ -21,6 +20,7 @@ anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_avhy0")
[node name="Background" type="TextureRect" parent="." unique_id=290638011]
material = SubResource("ShaderMaterial_aeitr")
@@ -33,53 +33,110 @@ grow_vertical = 2
texture = SubResource("CompressedTexture2D_cqx26")
stretch_mode = 1
[node name="ScrollContainer" type="ScrollContainer" parent="." unique_id=1694205679]
[node name="TextureRect" type="TextureRect" parent="." unique_id=2036714117]
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = -140.0
offset_top = -332.0
offset_right = 514.0
offset_bottom = 200.0
grow_vertical = 0
texture = ExtResource("2_3oan1")
expand_mode = 1
stretch_mode = 4
[node name="WordSelectScroll" type="ScrollContainer" parent="." unique_id=920997112]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -288.5
offset_top = -360.0
offset_right = 288.5
offset_bottom = 360.0
grow_horizontal = 2
grow_vertical = 2
[node name="WordSelect" type="VBoxContainer" parent="WordSelectScroll" unique_id=56995036]
visible = false
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
alignment = 1
[node name="MainButtons" type="BoxContainer" parent="." unique_id=881316051]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -288.5
offset_top = -222.5
offset_right = 288.5
offset_bottom = 222.5
grow_horizontal = 2
grow_vertical = 2
vertical = true
[node name="Cascade" type="Button" parent="MainButtons" unique_id=1019308409]
layout_mode = 2
theme_override_font_sizes/font_size = 50
text = "Fish Cascade
"
expand_icon = true
[node name="Comet" type="Button" parent="MainButtons" unique_id=1352982543]
layout_mode = 2
theme_override_font_sizes/font_size = 50
text = "Comet Zap
"
expand_icon = true
[node name="Lessons" type="Button" parent="MainButtons" unique_id=1616574107]
layout_mode = 2
theme_override_font_sizes/font_size = 50
text = "Lessons
"
expand_icon = true
[node name="Options" type="Button" parent="MainButtons" unique_id=249277019]
layout_mode = 2
theme_override_font_sizes/font_size = 50
text = "Options"
expand_icon = true
[node name="Quit" type="Button" parent="MainButtons" unique_id=1080429911]
layout_mode = 2
theme_override_font_sizes/font_size = 50
text = "Quit
"
expand_icon = true
[node name="BackgroundMusic" type="AudioStreamPlayer2D" parent="." unique_id=1780401057]
stream = ExtResource("3_xhbdh")
volume_db = -20.0
autoplay = true
parameters/looping = true
[node name="ButtonPress" type="AudioStreamPlayer2D" parent="." unique_id=1605257004]
stream = ExtResource("5_32ulc")
volume_db = -20.0
[node name="Fade" type="ColorRect" parent="." unique_id=1920157134]
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
color = Color(0, 0, 0, 1)
[node name="VBoxContainer" type="VBoxContainer" parent="ScrollContainer" unique_id=1812285147]
layout_mode = 2
size_flags_horizontal = 3
[node name="Button" type="Button" parent="ScrollContainer/VBoxContainer" unique_id=1019308409]
layout_mode = 2
theme_override_font_sizes/font_size = 50
text = "Fish Cascade
"
icon = ExtResource("2_0p6fv")
expand_icon = true
[node name="Button2" type="Button" parent="ScrollContainer/VBoxContainer" unique_id=1352982543]
layout_mode = 2
theme_override_font_sizes/font_size = 50
text = "Comet Zap
"
icon = ExtResource("3_maffk")
expand_icon = true
[node name="Button3" type="Button" parent="ScrollContainer/VBoxContainer" unique_id=1616574107]
layout_mode = 2
theme_override_font_sizes/font_size = 50
text = "Lessons
"
icon = ExtResource("4_qgvwr")
expand_icon = true
[node name="Button4" type="Button" parent="ScrollContainer/VBoxContainer" unique_id=249277019]
layout_mode = 2
theme_override_font_sizes/font_size = 50
text = "Options"
icon = ExtResource("5_1ct8e")
expand_icon = true
[node name="Button5" type="Button" parent="ScrollContainer/VBoxContainer" unique_id=1080429911]
layout_mode = 2
theme_override_font_sizes/font_size = 50
text = "Quit
"
icon = ExtResource("6_m1gal")
expand_icon = true
[connection signal="pressed" from="MainButtons/Cascade" to="." method="_on_cascade_pressed"]
[connection signal="pressed" from="MainButtons/Comet" to="." method="_on_comet_pressed"]

View File

@@ -12,4 +12,8 @@ func _process(delta: float) -> void:
func _on_pressed() -> void:
self.get_parent().get_node("ButtonPress").play()
var tween := create_tween()
tween.parallel().tween_property(self.get_parent().get_node("Fade"), "modulate:a", 1, 0.5).set_trans(Tween.TRANS_SINE).set_ease(Tween.EASE_OUT)
await self.get_parent().get_node("ButtonPress").finished
get_tree().change_scene_to_file("res://scenes/menus/select_mode/select_mode.tscn")

View File

@@ -4,6 +4,8 @@
[ext_resource type="Texture2D" uid="uid://db557qcd1godx" path="res://textures/scrolbackground.png" id="2_3xoar"]
[ext_resource type="Texture2D" uid="uid://dew71sa7dwdnc" path="res://textures/tux typing +.png" id="3_mom7w"]
[ext_resource type="Script" uid="uid://cvxtof1igytdj" path="res://scenes/menus/start_menu/start_button.gd" id="4_jd0r5"]
[ext_resource type="AudioStream" uid="uid://cphmtgjrvot1n" path="res://assets/audio/music/menus/Discovery (Title Screen) - Sonic Mania [OST] [UZpxOFyEOZY].mp3" id="5_tufir"]
[ext_resource type="AudioStream" uid="uid://podscahsf0d4" path="res://assets/audio/sfx/MenuAccept.wav" id="6_uskxy"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_nlc08"]
shader = ExtResource("1_kpexm")
@@ -125,4 +127,24 @@ label_settings = SubResource("LabelSettings_jd0r5")
horizontal_alignment = 1
vertical_alignment = 1
[node name="TitleMusic" type="AudioStreamPlayer2D" parent="." unique_id=200515057]
stream = ExtResource("5_tufir")
volume_db = -20.0
autoplay = true
[node name="ButtonPress" type="AudioStreamPlayer2D" parent="." unique_id=878860967]
stream = ExtResource("6_uskxy")
volume_db = -20.0
[node name="Fade" type="ColorRect" parent="." unique_id=884781609]
modulate = Color(1, 1, 1, 0)
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
color = Color(0, 0, 0, 1)
[connection signal="pressed" from="StartButton" to="StartButton" method="_on_pressed"]

View File

@@ -0,0 +1,9 @@
[gd_scene format=3 uid="uid://xcgelb5iy4wu"]
[node name="Button" type="Button" unique_id=25006937]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
text = "Placeholder"