Replaced game_lost_sound.wav with Kuni

This commit is contained in:
ben 2022-07-26 14:26:42 -05:00
parent ddac591131
commit ff059ff162
2 changed files with 6 additions and 6 deletions

View file

@ -122,15 +122,15 @@ class Scoreboard(Turtle):
self.__spawn_time = self.level_data[self.levels[self.current_level]]['SpawnTime'] self.__spawn_time = self.level_data[self.levels[self.current_level]]['SpawnTime']
SoundAndMusic.play_change_level_sound() SoundAndMusic.play_change_level_sound()
count = 5 count = 5
countDown = Turtle() count_down = Turtle()
countDown.hideturtle() count_down.hideturtle()
countDown.penup() count_down.penup()
countDown.goto(0, 0) count_down.goto(0, 0)
SoundAndMusic.pause_music() SoundAndMusic.pause_music()
while count >= 0: while count >= 0:
countDown.write(f'{count}', align=self.CENTER_ALIGN, font=self.GAME_OVER_FONT) count_down.write(f'{count}', align=self.CENTER_ALIGN, font=self.GAME_OVER_FONT)
time.sleep(1.0) time.sleep(1.0)
countDown.clear() count_down.clear()
count -= 1 count -= 1
SoundAndMusic.unpause_music() SoundAndMusic.unpause_music()
self.draw_scoreboard() self.draw_scoreboard()