Add main menu, WebSocket API demo, and multi-scene game hub.
Replace the single-entry Pong flow with a menu launcher, a per-client API demo on :8081/ws with stream controls and tap flash feedback, and bump the viewport to 1920×1080. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,91 @@
|
||||
[gd_scene format=3 uid="uid://cmainmenu001"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/menu.gd" id="1_menu"]
|
||||
|
||||
[node name="Menu" 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_menu")
|
||||
|
||||
[node name="Background" type="ColorRect" parent="."]
|
||||
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.08, 0.09, 0.14, 1)
|
||||
|
||||
[node name="CenterBox" type="VBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -180.0
|
||||
offset_top = -240.0
|
||||
offset_right = 180.0
|
||||
offset_bottom = 240.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_constants/separation = 16
|
||||
alignment = 1
|
||||
|
||||
[node name="Title" type="Label" parent="CenterBox"]
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.9, 0.92, 0.98, 1)
|
||||
theme_override_font_sizes/font_size = 32
|
||||
horizontal_alignment = 1
|
||||
text = "alox test game"
|
||||
|
||||
[node name="Subtitle" type="Label" parent="CenterBox"]
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.6, 0.65, 0.75, 1)
|
||||
theme_override_font_sizes/font_size = 14
|
||||
horizontal_alignment = 1
|
||||
text = "Hauptmenü"
|
||||
|
||||
[node name="Spacer" type="Control" parent="CenterBox"]
|
||||
custom_minimum_size = Vector2(0, 24)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="DemoButton" type="Button" parent="CenterBox"]
|
||||
custom_minimum_size = Vector2(280, 48)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
theme_override_font_sizes/font_size = 18
|
||||
text = "Demo"
|
||||
|
||||
[node name="ConfigButton" type="Button" parent="CenterBox"]
|
||||
custom_minimum_size = Vector2(280, 48)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
theme_override_font_sizes/font_size = 18
|
||||
text = "Config"
|
||||
|
||||
[node name="PongButton" type="Button" parent="CenterBox"]
|
||||
custom_minimum_size = Vector2(280, 48)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
theme_override_font_sizes/font_size = 18
|
||||
text = "Pong"
|
||||
|
||||
[node name="ColorGameButton" type="Button" parent="CenterBox"]
|
||||
custom_minimum_size = Vector2(280, 48)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
theme_override_font_sizes/font_size = 18
|
||||
text = "Color Game"
|
||||
|
||||
[node name="ExitButton" type="Button" parent="CenterBox"]
|
||||
custom_minimum_size = Vector2(280, 48)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
theme_override_font_sizes/font_size = 18
|
||||
text = "Exit"
|
||||
Reference in New Issue
Block a user