Rescaled maps and reworked drone code

Rescaled maps and reworked drone code to support fpv remote and joy controller with a menu switch
This commit is contained in:
2025-02-15 22:31:27 -05:00
parent bad3fe6f1e
commit 6b85034a30
11 changed files with 133 additions and 824 deletions

View File

@@ -2,6 +2,9 @@ extends Control
@export var start_button: Button
@export var quit_button: Button
@export var controller_mode_button: CheckButton
@export var joy_controller_label: Label
@export var fpv_remote_label: Label
func _ready():
@@ -23,3 +26,14 @@ func _on_quit_button_pressed():
func _on_visibility_changed() -> void:
if visible:
start_button.grab_focus()
func _on_controller_mode_button_toggled(toggled_on):
if toggled_on:
GameManager.controller_mode = "FPVRemote"
joy_controller_label.self_modulate = Color(0.5, 0.5, 0.5, 1.0)
fpv_remote_label.self_modulate = Color(0.0, 1.0, 0.0, 1.0)
elif !toggled_on:
GameManager.controller_mode = "JoyController"
joy_controller_label.self_modulate = Color(0.0, 1.0, 0.0, 1.0)
fpv_remote_label.self_modulate = Color(0.5, 0.5, 0.5, 1.0)