basic result screen, fix empty balloon

This commit is contained in:
Yonokid
2025-04-24 23:25:10 -04:00
parent 3291eccdcd
commit ac927114cb
5 changed files with 71 additions and 4 deletions

View File

@@ -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)