mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 03:30:13 +01:00
basic result screen, fix empty balloon
This commit is contained in:
@@ -156,10 +156,12 @@ class GameScreen:
|
||||
self.tja = TJAParser(song)
|
||||
self.tja.get_metadata()
|
||||
self.tja.distance = self.width - self.judge_x
|
||||
self.start_delay = 0
|
||||
global_data.song_title = self.tja.title
|
||||
|
||||
self.player_1 = Player(self, 1, difficulty, get_config()["general"]["judge_offset"])
|
||||
self.song_music = audio.load_sound(self.tja.wave)
|
||||
self.start_ms = get_current_ms() - self.tja.offset*1000
|
||||
self.start_ms = (get_current_ms() - self.tja.offset*1000) + self.start_delay
|
||||
|
||||
audio.play_sound(self.song_music)
|
||||
|
||||
@@ -169,6 +171,7 @@ class GameScreen:
|
||||
self.init_tja(global_data.selected_song, global_data.selected_difficulty)
|
||||
self.song_is_started = True
|
||||
|
||||
|
||||
self.current_ms = get_current_ms() - self.start_ms
|
||||
self.player_1.update(self)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user