Use frontal steering-wheel roll for Space Shooter movement.

Drop the interactive accel calibration and map left/right ship motion from absolute pod roll while held facing the player.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-26 13:46:34 +02:00
co-authored by Cursor
parent 54d42dade9
commit 130532c4c9
3 changed files with 32 additions and 151 deletions
+2 -56
View File
@@ -1,7 +1,6 @@
[gd_scene format=3 uid="uid://bwayhk38lpl3u"]
[ext_resource type="Script" path="res://scripts/space_shooter.gd" id="1_shooter"]
[ext_resource type="Script" path="res://scripts/calibration_overlay.gd" id="2_calib"]
[node name="SpaceShooter" type="Node2D"]
script = ExtResource("1_shooter")
@@ -63,18 +62,6 @@ theme_override_font_sizes/font_size = 18
horizontal_alignment = 2
text = "Rechts · —"
[node name="RecalibButton" type="Button" parent="UiLayer"]
visible = false
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -240.0
offset_top = 12.0
offset_right = -130.0
offset_bottom = 44.0
grow_horizontal = 0
text = "Neu kalibrieren"
[node name="SetupPanel" type="VBoxContainer" parent="UiLayer"]
anchors_preset = 8
anchor_left = 0.5
@@ -102,7 +89,7 @@ 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 = "Split-Screen · Pod-Zuweisung"
text = "Split-Screen · Pod frontal halten, Lenkrad drehen"
[node name="ClientGrid" type="GridContainer" parent="UiLayer/SetupPanel"]
layout_mode = 2
@@ -145,45 +132,4 @@ layout_mode = 2
size_flags_horizontal = 4
disabled = true
theme_override_font_sizes/font_size = 18
text = "Kalibrierung starten"
[node name="CalibrationOverlay" type="Control" parent="UiLayer"]
visible = false
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 0
script = ExtResource("2_calib")
[node name="HintLabel" type="Label" parent="UiLayer/CalibrationOverlay"]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -420.0
offset_top = 80.0
offset_right = 420.0
offset_bottom = 180.0
grow_horizontal = 2
theme_override_colors/font_color = Color(0.9, 0.92, 0.98, 1)
theme_override_font_sizes/font_size = 20
horizontal_alignment = 1
autowrap_mode = 3
text = "Kalibrierung"
[node name="StartButton" type="Button" parent="UiLayer/CalibrationOverlay"]
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
text = "Kalibrierung starten"
text = "Spiel starten"