add splash screen
parent
025f2e7e66
commit
a688c555eb
6
game.py
6
game.py
|
@ -28,6 +28,12 @@ class TheGame:
|
||||||
|
|
||||||
self.pinned = []
|
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:
|
try:
|
||||||
pygame.mixer.init()
|
pygame.mixer.init()
|
||||||
pygame.mixer.music.set_volume(0.5)
|
pygame.mixer.music.set_volume(0.5)
|
||||||
|
|
Loading…
Reference in New Issue