Updated to use GameUtils internal calls
This commit is contained in:
@ -87,7 +87,7 @@ class Launcher:
|
|||||||
def update(self):
|
def update(self):
|
||||||
for event in pygame.event.get():
|
for event in pygame.event.get():
|
||||||
if self.gameRunning:
|
if self.gameRunning:
|
||||||
self.currentGame.onEvent(event)
|
self.currentGame._onEvent(event)
|
||||||
|
|
||||||
# CTRL+ESC
|
# CTRL+ESC
|
||||||
if event.type == pygame.QUIT or (event.type == pygame.KEYDOWN and event.key == pygame.K_ESCAPE and event.mod == 64):
|
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'])
|
self.loadGame(games['russianRoulette'])
|
||||||
|
|
||||||
if self.gameRunning:
|
if self.gameRunning:
|
||||||
self.currentGame.update()
|
self.currentGame._update()
|
||||||
self.screen.blit(self.currentGame.surf, (0, 0))
|
self.screen.blit(self.currentGame.surf, (0, 0))
|
||||||
else:
|
else:
|
||||||
self.screen.fill((0, 0, 0))
|
self.screen.fill((0, 0, 0))
|
||||||
|
|||||||
Reference in New Issue
Block a user