Added Window Title.

This commit is contained in:
The Wobbler 2024-02-03 17:16:02 +01:00
parent 5b5594ae40
commit 4f9976e7c8

View file

@ -8,13 +8,14 @@ class ModelViewer:
def __init__(self, window_size: tuple=(1200, 800), fps: int=60): def __init__(self, window_size: tuple=(1200, 800), fps: int=60):
pygame.init() pygame.init()
self.screen = pygame.display.set_mode(window_size, flags=pygame.RESIZABLE) self.screen = pygame.display.set_mode(window_size, flags=pygame.RESIZABLE)
pygame.display.set_caption("Sprite Stacking Model Viewer")
self.gray = (20, 20, 20) self.gray = (20, 20, 20)
self.window_size = window_size self.window_size = window_size
self.fps = fps self.fps = fps
self.rotating = True self.rotating = True
self.model = engine.Object("models/coffee_cup.png", size_multiplier=20) self.model = engine.Object("models/coffee_cup.png", size_multiplier=30)
self.clock = pygame.time.Clock() self.clock = pygame.time.Clock()