convert font surface to fix pygame2 error
This commit is contained in:
parent
53081f1bcb
commit
2320c6697c
|
@ -4,3 +4,4 @@ MANIFEST
|
|||
dist/
|
||||
build/
|
||||
*.mp4
|
||||
venv/
|
||||
|
|
2
NS.py
2
NS.py
|
@ -1896,7 +1896,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))
|
||||
foreground = font.render(time, False, (180, 150, 20)).convert_alpha()
|
||||
dsr = self.get_display_surface().get_rect()
|
||||
self.text = RainbowSprite(self, foreground, 180, 200)
|
||||
self.text.location.midtop = dsr.centerx, 80
|
||||
|
|
Loading…
Reference in New Issue