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,88 @@
|
||||
[gd_scene format=3 uid="uid://bcolorgame001"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/color_game.gd" id="1_color"]
|
||||
|
||||
[node name="ColorGame" 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_color")
|
||||
|
||||
[node name="ColorRect" 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.5, 0.3, 0.7, 1)
|
||||
|
||||
[node name="UiLayer" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="BackButton" type="Button" parent="UiLayer"]
|
||||
offset_left = 16.0
|
||||
offset_top = 12.0
|
||||
offset_right = 120.0
|
||||
offset_bottom = 44.0
|
||||
text = "Menü"
|
||||
|
||||
[node name="Title" type="Label" parent="UiLayer"]
|
||||
anchors_preset = 5
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
offset_left = -200.0
|
||||
offset_top = 60.0
|
||||
offset_right = 200.0
|
||||
offset_bottom = 100.0
|
||||
grow_horizontal = 2
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
||||
theme_override_font_sizes/font_size = 28
|
||||
horizontal_alignment = 1
|
||||
text = "Color Game"
|
||||
|
||||
[node name="TargetRect" type="ColorRect" parent="UiLayer"]
|
||||
anchors_preset = 5
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
offset_left = -60.0
|
||||
offset_top = 120.0
|
||||
offset_right = 60.0
|
||||
offset_bottom = 240.0
|
||||
grow_horizontal = 2
|
||||
color = Color(0.85, 0.2, 0.3, 1)
|
||||
|
||||
[node name="TargetLabel" type="Label" parent="UiLayer"]
|
||||
anchors_preset = 5
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
offset_left = -100.0
|
||||
offset_top = 250.0
|
||||
offset_right = 100.0
|
||||
offset_bottom = 280.0
|
||||
grow_horizontal = 2
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 0.9)
|
||||
theme_override_font_sizes/font_size = 14
|
||||
horizontal_alignment = 1
|
||||
text = "Zielfarbe"
|
||||
|
||||
[node name="HintLabel" type="Label" parent="UiLayer"]
|
||||
anchors_preset = 7
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -320.0
|
||||
offset_top = -80.0
|
||||
offset_right = 320.0
|
||||
offset_bottom = -40.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 0.85)
|
||||
theme_override_font_sizes/font_size = 14
|
||||
horizontal_alignment = 1
|
||||
autowrap_mode = 3
|
||||
text = "Neige das Gerät, um die Farbe anzupassen"
|
||||
Reference in New Issue
Block a user