mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 11:40:13 +01:00
mystery feature #50
This commit is contained in:
@@ -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
16
scenes/practice/game.py
Normal 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()
|
||||
16
scenes/practice/song_select.py
Normal file
16
scenes/practice/song_select.py
Normal 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
|
||||
Reference in New Issue
Block a user