diff --git a/app/main.py b/app/main.py index d410539..ee6cbb8 100644 --- a/app/main.py +++ b/app/main.py @@ -5,8 +5,8 @@ from app.routers.games import games from app.routers.cards import cards from app.routers.websockets import websockets -from .utils import show_initial_image -import threading +# from .utils import show_initial_image +# import threading app = FastAPI() @@ -26,5 +26,5 @@ app.include_router(websockets.router) # This displays the initial image with the sound -t = threading.Thread(target=show_initial_image) +# t = threading.Thread(target=show_initial_image) # t.start() diff --git a/app/utils.py b/app/utils.py index 91bb096..88eeed0 100644 --- a/app/utils.py +++ b/app/utils.py @@ -1,39 +1,39 @@ -import os -import pygame -import time +# import os +# import pygame +# import time -def show_initial_image(): - # Path of the image I want to display - image_path = "./app/resources/stay_away.png" +# def show_initial_image(): +# # Path of the image I want to display +# image_path = "./app/resources/stay_away.png" - # Path of the audio file - audio_path = "./app/resources/stay_away.mp3" +# # Path of the audio file +# audio_path = "./app/resources/stay_away.mp3" - # pygame configuration - pygame.init() - window = pygame.display.set_mode((400, 300), pygame.NOFRAME) +# # pygame configuration +# pygame.init() +# window = pygame.display.set_mode((400, 300), pygame.NOFRAME) - # Load the image - image = pygame.image.load(image_path) +# # Load the image +# image = pygame.image.load(image_path) - # Get the width and height of the window - window_width, window_height = window.get_size() +# # Get the width and height of the window +# window_width, window_height = window.get_size() - # Scale the image to the size of the window - image = pygame.transform.scale(image, (window_width, window_height)) +# # Scale the image to the size of the window +# image = pygame.transform.scale(image, (window_width, window_height)) - # Show the image in the window - window.blit(image, (0, 0)) - pygame.display.flip() +# # Show the image in the window +# window.blit(image, (0, 0)) +# pygame.display.flip() - # Play audio file - pygame.mixer.init() - pygame.mixer.music.load(audio_path) - pygame.mixer.music.play() +# # Play audio file +# pygame.mixer.init() +# pygame.mixer.music.load(audio_path) +# pygame.mixer.music.play() - # Wait 6 seconds - time.sleep(6) +# # Wait 6 seconds +# time.sleep(6) - # Close the window - pygame.quit() +# # Close the window +# pygame.quit()