Skip to content

Commit

Permalink
add on keyboard clased
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikerniker committed Jan 13, 2025
1 parent a2535be commit 284b33d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Day95/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,14 @@ def __init__(self, **kwargs):
# Clock.schedule_interval(self.update_movement, 1.0 / 60.0)
# Window.bind(on_key_down=self.on_key_down)
# Window.bind(on_key_up=self.on_key_up)


def _on_keyboard_closed(self):
self._keyboard.unbind(on_key_down=self.on_keyboard_down)
self._keyboard.unbind(on_key_up=self.on_keyboard_up)
self._keyboard = None

# continue here

def create_aliens(self, *args):
alien_width = 35
alien_height = 35 # Height of each alien
Expand Down

0 comments on commit 284b33d

Please sign in to comment.