diff options
author | RaindropsSys <contact@minteck.org> | 2023-08-31 22:47:58 +0200 |
---|---|---|
committer | RaindropsSys <contact@minteck.org> | 2023-08-31 22:47:58 +0200 |
commit | 03afd42fdcd52e4a827016828c4ad286de320078 (patch) | |
tree | 0cb77209fdb1d4d192afa2ac6d6c3ada0074661b /main.py | |
parent | e54ac640f1d3f7071a48032e924b04529cbd358f (diff) | |
download | blocks-03afd42fdcd52e4a827016828c4ad286de320078.tar.gz blocks-03afd42fdcd52e4a827016828c4ad286de320078.tar.bz2 blocks-03afd42fdcd52e4a827016828c4ad286de320078.zip |
Updated 5 files, added 2 files and deleted 337 files (automated)
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() |