added another close condition to applogic when loop exits

This commit is contained in:
steev 2023-12-05 22:04:52 +01:00
parent 2b073bfdfe
commit 5d17e5a487
3 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@ class App:
def __init__(self, width:int=800, height:int=600, title:str="default title"): def __init__(self, width:int=800, height:int=600, title:str="default title"):
self.__window = Window(width=width, height=height, title=title) self.__window = Window(width=width, height=height, title=title)
self.startGameLoop() self.startGameLoop()
self.onCleanup()
def startGameLoop(self): def startGameLoop(self):
while self.__running: while self.__running: