Add menu entries for both variants, use eight high-contrast colors with allowed duplicates, and turn wrong-guess pods off after a red blink until the next round. Co-authored-by: Cursor <cursoragent@cursor.com>
106 lines
2.8 KiB
Plaintext
106 lines
2.8 KiB
Plaintext
[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 = -320.0
|
|
offset_right = 180.0
|
|
offset_bottom = 320.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme_override_constants/separation = 14
|
|
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="DigitsGameButton" 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 = "Zahlen-Spiel"
|
|
|
|
[node name="ColorsGameButton" 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 = "Farben-Spiel"
|
|
|
|
[node name="SpaceShooterButton" 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 = "Space Shooter"
|
|
|
|
[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"
|