Browse Source

convert font surface to fix pygame2 error

magfest_edits
Frank DeMarco 2 years ago
parent
commit
2320c6697c
  1. 1
      .gitignore
  2. 2
      NS.py

1
.gitignore vendored

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

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…
Cancel
Save