[gd_scene format=3 uid="uid://cjs5bms5o6763"] [ext_resource type="Script" path="res://scripts/main.gd" id="1_main"] [ext_resource type="Script" uid="uid://bnvlevjo1fp48" path="res://scripts/ball.gd" id="2_ball"] [ext_resource type="Script" uid="uid://crbm1833myr5l" path="res://scripts/calibration_overlay.gd" id="3_calib"] [node name="Main" type="Node2D" unique_id=474005048] script = ExtResource("1_main") [node name="BgLayer" type="CanvasLayer" parent="." unique_id=895115848] layer = -10 [node name="Background" type="ColorRect" parent="BgLayer" unique_id=808294717] 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="Platform" type="Polygon2D" parent="." unique_id=1966405851] position = Vector2(576, 600) color = Color(0.25, 0.72, 0.95, 1) polygon = PackedVector2Array(-80, -12, 80, -12, 80, 12, -80, -12) [node name="Ball" type="Node2D" parent="." unique_id=1211114968] position = Vector2(576, 320) script = ExtResource("2_ball") [node name="UiLayer" type="CanvasLayer" parent="." unique_id=635198279] [node name="StatusLabel" type="Label" parent="UiLayer" unique_id=601884942] offset_left = 16.0 offset_top = 12.0 offset_right = 560.0 offset_bottom = 40.0 theme_override_colors/font_color = Color(0.75, 0.8, 0.9, 1) theme_override_font_sizes/font_size = 14 text = "Starting…" [node name="ThresholdPanel" type="VBoxContainer" parent="UiLayer" unique_id=1490838898] offset_left = 16.0 offset_top = 48.0 offset_right = 420.0 offset_bottom = 148.0 [node name="ThresholdCaption" type="Label" parent="UiLayer/ThresholdPanel" unique_id=1245613915] layout_mode = 2 theme_override_colors/font_color = Color(0.75, 0.8, 0.9, 1) theme_override_font_sizes/font_size = 14 text = "Schwellwert: 3000" [node name="ThresholdSlider" type="HSlider" parent="UiLayer/ThresholdPanel" unique_id=1874311831] custom_minimum_size = Vector2(380, 0) layout_mode = 2 size_flags_horizontal = 3 max_value = 15000.0 step = 50.0 value = 3000.0 tick_count = 16 ticks_on_borders = true [node name="SensitivityCaption" type="Label" parent="UiLayer/ThresholdPanel" unique_id=1083787312] layout_mode = 2 theme_override_colors/font_color = Color(0.75, 0.8, 0.9, 1) theme_override_font_sizes/font_size = 14 text = "Bewegungsstärke: 6 %" [node name="SensitivitySlider" type="HSlider" parent="UiLayer/ThresholdPanel" unique_id=1497316063] custom_minimum_size = Vector2(380, 0) layout_mode = 2 size_flags_horizontal = 3 min_value = 1.0 value = 6.0 tick_count = 11 ticks_on_borders = true [node name="AccelLabel" type="Label" parent="UiLayer" unique_id=1538579724] anchors_preset = 3 anchor_left = 1.0 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 offset_left = -320.0 offset_top = -72.0 offset_right = -16.0 offset_bottom = -20.0 grow_horizontal = 0 grow_vertical = 0 theme_override_colors/font_color = Color(0.9, 0.92, 0.55, 1) theme_override_font_sizes/font_size = 16 text = "x: — y: — z: —" horizontal_alignment = 2 [node name="RecalibButton" type="Button" parent="UiLayer" unique_id=1145373245] visible = false anchors_preset = 1 anchor_left = 1.0 anchor_right = 1.0 offset_left = -220.0 offset_top = 12.0 offset_right = -16.0 offset_bottom = 44.0 grow_horizontal = 0 text = "Kalibrierung neu starten" [node name="CalibrationOverlay" type="Control" parent="UiLayer" unique_id=2105464363] layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 script = ExtResource("3_calib") [node name="HintLabel" type="Label" parent="UiLayer/CalibrationOverlay" unique_id=2126154488] layout_mode = 1 anchors_preset = 5 anchor_left = 0.5 anchor_right = 0.5 offset_left = -360.0 offset_top = 80.0 offset_right = 360.0 offset_bottom = 140.0 grow_horizontal = 2 theme_override_colors/font_color = Color(0.9, 0.92, 0.98, 1) theme_override_font_sizes/font_size = 20 text = "Kalibrierung" horizontal_alignment = 1 autowrap_mode = 3 [node name="StartButton" type="Button" parent="UiLayer/CalibrationOverlay" unique_id=468536630] layout_mode = 1 anchors_preset = 7 anchor_left = 0.5 anchor_top = 1.0 anchor_right = 0.5 anchor_bottom = 1.0 offset_left = -140.0 offset_top = -120.0 offset_right = 140.0 offset_bottom = -72.0 grow_horizontal = 2 grow_vertical = 0 text = "Kalibrierung starten"