- self.fonts['h1'] = pygame.font.Font(None, 80)
- self.fonts['body'] = pygame.font.Font(None, 30)
- x, y = 40, 10
- self.splash_screen.blit(self.fonts['h1'].render(self.resources['title'], True, self.colours['h1']), (x, y))
- y += 80
- self.splash_screen.blit(self.fonts['body'].render(self.resources['copyright'], True, self.colours['body']), (x, y))
+ # print the Game title and copyright
+ self.print_x, self.print_y = 40, 40 # indent
+ self.print(self.resources['title'], 'h1')
+ self.print(self.resources['copyright'], 'body')
+ # print the Soundtrack copyright information
+ self.print('Soundtrack:', 'body')
+ self.print_x += 20 # indent
+ for key in ('copyright', 'license', 'url'):
+ text = "%s: %s" % (key, self.resources["soundtrack.%s" % key])
+ self.print(text, 'body')
+