fixed ending background and text
This commit is contained in:
parent
1df3863638
commit
6dd202c8e3
8
NS.py
8
NS.py
|
@ -478,6 +478,7 @@ class Title(Animation):
|
|||
|
||||
def deactivate(self):
|
||||
self.active = False
|
||||
self.halt()
|
||||
|
||||
def start_game(self):
|
||||
self.deactivate()
|
||||
|
@ -575,8 +576,7 @@ class Title(Animation):
|
|||
if platform.get_pressed():
|
||||
self.video.hide()
|
||||
self.get_game().tony.set_frameset("static")
|
||||
self.halt(self.show_video)
|
||||
self.halt(self.hide_video)
|
||||
self.halt()
|
||||
self.play(self.show_video, delay=10000, play_once=True)
|
||||
self.video.update()
|
||||
self.draw_scores()
|
||||
|
@ -2041,7 +2041,7 @@ class Ending(Animation):
|
|||
self.play(self.start, delay=3000, play_once=True)
|
||||
font = Font(self.get_resource("rounded-mplus-1m-bold.ttf"), 64)
|
||||
time = self.get_game().title.get_formatted_time(self.get_game().most_recent_time)
|
||||
foreground = font.render(time, False, (180, 150, 20)).convert_alpha()
|
||||
foreground = font.render(time, False, (180, 150, 20), (255, 255, 255)).convert_alpha()
|
||||
dsr = self.get_display_surface().get_rect()
|
||||
self.text = RainbowSprite(self, foreground, 180, 200)
|
||||
self.text.location.midtop = dsr.centerx, 80
|
||||
|
@ -2080,7 +2080,7 @@ class Ending(Animation):
|
|||
else:
|
||||
self.start_wipe()
|
||||
self.advance_prompt.cancel_first_press()
|
||||
self.get_game().logo_background.update()
|
||||
self.get_game().logo.update()
|
||||
self.get_game().tony.update()
|
||||
self.slime_bag.update()
|
||||
dsr = self.get_display_surface().get_rect()
|
||||
|
|
Loading…
Reference in New Issue