convert font surface to fix pygame2 error

This commit is contained in:
Frank DeMarco 2020-10-13 16:12:44 -04:00
parent 53081f1bcb
commit 2320c6697c
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@ MANIFEST
dist/
build/
*.mp4
venv/

2
NS.py
View File

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