feat: add main-menu difficulty picker for Match mode

Replace the raw checkpoint dropdown with curated Easy/Medium/Hard presets
that drive GameSettings' bot model/reaction_ticks/action_noise overrides.
Move raw-checkpoint testing and Spectate mode into a dev-only section
hidden via OS.is_debug_build() so they disappear from release exports.
This commit is contained in:
Josh Creek
2026-08-03 14:31:39 +01:00
parent 20f6be7e28
commit 4507b6dc1b
5 changed files with 125 additions and 31 deletions
+2 -2
View File
@@ -55,8 +55,8 @@ func _make_opponent_controller() -> ShipController:
if not path.is_empty() and FileAccess.file_exists(path):
var bot := AIShipController.new()
bot.model_path = path
bot.reaction_ticks = bot_reaction_ticks
bot.action_noise = bot_action_noise
bot.reaction_ticks = bot_reaction_ticks if GameSettings.selected_bot_reaction_ticks < 0 else GameSettings.selected_bot_reaction_ticks
bot.action_noise = bot_action_noise if GameSettings.selected_bot_action_noise < 0.0 else GameSettings.selected_bot_action_noise
return bot
if not path.is_empty():
push_warning("MatchMode: bot model not found at %s, spawning inert opponent" % path)