integrated dev menu into game with secret code
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user