mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-11 18:03:43 +00:00
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:
@@ -5,6 +5,18 @@ extends Node
|
||||
|
||||
# Opponent policy chosen in the main menu; empty = use the mode's own export.
|
||||
var selected_bot_path: String = ""
|
||||
# Difficulty handicaps chosen alongside selected_bot_path; -1/-1.0 = use the
|
||||
# mode's own export.
|
||||
var selected_bot_reaction_ticks: int = -1
|
||||
var selected_bot_action_noise: float = -1.0
|
||||
# Name of the chosen difficulty tier, kept only to reselect the right
|
||||
# dropdown item when returning to the menu.
|
||||
var selected_difficulty_name: String = ""
|
||||
# Dev-only: raw checkpoint override for Match's opponent; empty = use the
|
||||
# difficulty tier above instead. Kept separate from selected_bot_path so the
|
||||
# dev dropdown's own selection survives independently of which difficulty is
|
||||
# picked.
|
||||
var dev_bot_override_path: String = ""
|
||||
|
||||
# Spectate (bot vs bot) policies chosen in the main menu; empty = mode export.
|
||||
var spectate_bot_a_path: String = ""
|
||||
|
||||
Reference in New Issue
Block a user