add splash screen

master
Raphaël Vinot 2014-08-31 00:54:33 +02:00
parent 025f2e7e66
commit a688c555eb
1 changed files with 6 additions and 0 deletions

View File

@ -28,6 +28,12 @@ class TheGame:
self.pinned = []
# Set splashscreen
splashScreen = pygame.image.load("img/splashScreen.png")
self.screen.blit(pygame.transform.scale(splashScreen, self.size), (0, 0))
pygame.display.flip()
pygame.time.wait(3000)
try:
pygame.mixer.init()
pygame.mixer.music.set_volume(0.5)