diff options
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -10,7 +10,7 @@ import pygame import sys sys.path.append("./src") -from src import audio, game, window, loader +from src import audio, window, loader, menu pygame.font.init() pygame.init() @@ -51,7 +51,7 @@ while running: clock.tick(25) else: - game.run(screen) + menu.show(screen) break except Exception as e: pygame.mixer.music.load("./assets/sounds/gui/error.ogg") @@ -72,8 +72,8 @@ while running: message = e.message if hasattr(e, 'message') else str(e) code = ("".join([hex(ord(i)).split("x")[1] for i in message]) + "00000000").upper() - screen.blit(pygame.font.Font("./assets/font/main.ttf", 20).render("An error has occurred and the game has stopped.", True, (255, 255, 255)), (200, 124)) - screen.blit(pygame.font.Font("./assets/font/main.ttf", 20).render("Error code: 0x" + code[0:8], True, (255, 255, 255)), (199, 144)) + screen.blit(pygame.font.Font("./assets/font/main.ttf", 20).render("An error has occurred and the game has stopped.", False, (255, 255, 255)), (200, 124)) + screen.blit(pygame.font.Font("./assets/font/main.ttf", 20).render("Error code: 0x" + code[0:8], False, (255, 255, 255)), (199, 144)) pygame.display.update() |