From a688c555eb64584b6a493e4432103327b72cd947 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Sun, 31 Aug 2014 00:54:33 +0200 Subject: [PATCH] add splash screen --- game.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/game.py b/game.py index 011deea..eb8bb6d 100755 --- a/game.py +++ b/game.py @@ -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)