Skip to content

Commit

Permalink
remove debugging key
Browse files Browse the repository at this point in the history
  • Loading branch information
DaringCuteSeal committed May 6, 2023
1 parent 8460d3a commit e1ccb51
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions misi_hijau/game/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@

from . import events

from core.common import KeyFunc, KeyType

from core import components
from core.game_handler import GameComponents, GameHandler

Expand Down Expand Up @@ -53,7 +51,7 @@ def __init__(self):
self._init_story_dialog() # instantiate ingame storyline

# debugging
self.attach_debug_key()
# self.attach_debug_key()

def _start_intro_slideshow(self):
self.game_handler.callable_draw = self.ui_only_draw
Expand Down Expand Up @@ -231,8 +229,8 @@ def update(self):
# Debugging #
#############

def attach_debug_key(self):
self.game_handler.game_components.keylistener.add("debug_key", KeyFunc([pyxel.KEY_BACKSPACE],self._debug_show_level_stats, KeyType.BTNP, hold_time=10, repeat_time=100))
# def attach_debug_key(self):
# self.game_handler.game_components.keylistener.add("debug_key", KeyFunc([pyxel.KEY_BACKSPACE],self._debug_show_level_stats, KeyType.BTNP, hold_time=10, repeat_time=100))

def _debug_show_level_stats(self):
self.game_handler.game_components.event_handler.trigger_event(events.LevelNext)
# def _debug_show_level_stats(self):
# self.game_handler.game_components.event_handler.trigger_event(events.LevelNext)

0 comments on commit e1ccb51

Please sign in to comment.