Browse Source

splash screen correct

hacknerdy.py update 
minor bug fixes
master
kresse 1 year ago
parent
commit
5da0eb9ac1
1 changed files with 11 additions and 1 deletions
  1. +11
    -1
      hacKNerdy.py

+ 11
- 1
hacKNerdy.py View File

@ -321,12 +321,22 @@ def main():
#
fragen = Fragen(fragenpaket)
try:
screen.blit(background, (0, 0))
x = get_image(fragenpaket + "//splash.png")
x = pygame.transform.scale(x, (x_dim, y_dim))
screen.blit(x, (0,0))
pygame.display.flip()
#print ("Bild gefunden")
except:
#print("nicht gefunden")
#
screen.blit(background, (0, 0))
x = get_image("assets//graphics//bootsplash.png")
#background = pygame.Surface(screen.get_size())
pygame.display.flip()
x = pygame.transform.scale(x, (x_dim, y_dim))
screen.blit(x, (0,0))
pygame.display.flip()
except :
print ("Warning:\nNo specific splash.png in " + fragenpaket + " found, using default instead")
pass


Loading…
Cancel
Save