Updated to use GameUtils internal calls

This commit is contained in:
2025-06-24 08:01:48 +01:00
parent 1b84249f47
commit 214edfbe3a

View File

@ -87,7 +87,7 @@ class Launcher:
def update(self):
for event in pygame.event.get():
if self.gameRunning:
self.currentGame.onEvent(event)
self.currentGame._onEvent(event)
# CTRL+ESC
if event.type == pygame.QUIT or (event.type == pygame.KEYDOWN and event.key == pygame.K_ESCAPE and event.mod == 64):
@ -110,7 +110,7 @@ class Launcher:
self.loadGame(games['russianRoulette'])
if self.gameRunning:
self.currentGame.update()
self.currentGame._update()
self.screen.blit(self.currentGame.surf, (0, 0))
else:
self.screen.fill((0, 0, 0))