settings menu

This commit is contained in:
Yonokid
2026-01-03 11:10:52 -05:00
parent e0b7f0a863
commit 655c2683cf
3 changed files with 153 additions and 242 deletions

View File

@@ -242,7 +242,7 @@ def init_audio():
def check_args():
if len(sys.argv) == 1:
return Screens.LOADING
return Screens.SETTINGS
parser = argparse.ArgumentParser(description='Launch game with specified song file')
parser.add_argument('song_path', type=str, help='Path to the TJA song file')
@@ -265,7 +265,7 @@ def check_args():
selected_difficulty = args.difficulty
else:
selected_difficulty = max(tja.metadata.course_data.keys())
current_screen = Screens.GAME_PRACTICE if args.practice else Screens.AI_GAME
current_screen = Screens.GAME_PRACTICE if args.practice else Screens.GAME
global_data.session_data[PlayerNum.P1].selected_song = path
global_data.session_data[PlayerNum.P1].selected_difficulty = selected_difficulty
global_data.modifiers[PlayerNum.P1].auto = args.auto