mystery feature #50

This commit is contained in:
Anthony Samms
2025-11-10 11:31:37 -05:00
parent 244b66c0f3
commit 66b88ba480
7 changed files with 62 additions and 2 deletions

View File

@@ -438,8 +438,9 @@ class BoxManager:
def __init__(self):
self.box_titles: list[OutlinedText] = [
OutlinedText('演奏ゲーム', 50, ray.WHITE, outline_thickness=5, vertical=True),
OutlinedText('特訓モード', 50, ray.WHITE, outline_thickness=5, vertical=True),
OutlinedText('ゲーム設定', 50, ray.WHITE, outline_thickness=5, vertical=True)]
self.box_locations = ["SONG_SELECT", "SETTINGS"]
self.box_locations = ["SONG_SELECT", "PRACTICE_SELECT", "SETTINGS"]
self.num_boxes = len(self.box_titles)
self.boxes = [Box(self.box_titles[i], self.box_locations[i]) for i in range(len(self.box_titles))]
self.selected_box_index = 0

16
scenes/practice/game.py Normal file
View File

@@ -0,0 +1,16 @@
import logging
from pathlib import Path
from libs.background import Background
from scenes.game import GameScreen, JudgeCounter
logger = logging.getLogger(__name__)
class PracticeGameScreen(GameScreen):
def on_screen_start(self):
super().on_screen_start()
self.background = Background(1, self.bpm, scene_preset='PRACTICE')
def init_tja(self, song: Path):
super().init_tja(song)
self.player_1.judge_counter = JudgeCounter()

View File

@@ -0,0 +1,16 @@
import logging
from scenes.song_select import SongSelectScreen
logger = logging.getLogger(__name__)
class PracticeSongSelectScreen(SongSelectScreen):
def on_screen_start(self):
super().on_screen_start()
def update_players(self, current_time) -> str:
self.player_1.update(current_time)
if self.text_fade_out.is_finished:
self.player_1.selected_song = True
next_screen = "GAME_PRACTICE"
return next_screen