integrated dev menu into game with secret code

This commit is contained in:
2023-05-14 19:26:09 -04:00
parent 8a34ed7c01
commit 1c467371a8
3 changed files with 25 additions and 3 deletions

View File

@@ -30,6 +30,7 @@ class GameSurface(pygame.Surface):
self.game_fps = game_fps
self._input_handler = InputHandler(self._clock)
self.additional_args = {}
self.dev_override = False
self.bg = pygame.image.load(self.resource_dir + '/images/bg.png').convert_alpha()
self.sprites = pygame.sprite.Group()
@@ -45,3 +46,7 @@ class GameSurface(pygame.Surface):
self.sprites.draw(self)
self._input_handler.update()
if self._input_handler.dev_found:
self.next_surface = 'dev_menu'
self.dev_override = True
self.running = False