Skip to content

Commit

Permalink
add window bind to spacegame
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikerniker committed Dec 25, 2024
1 parent a8ed060 commit b528a40
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Day95/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def __init__(self, **kwargs):
Clock.schedule_once(self.create_aliens)
Clock.schedule_interval(self.update, 1.0 / 60.0)
Window.bind(on_key_down=self.on_key_down)
Window.bind(on_key_up=self.on_key_up)

def create_aliens(self):
self.clear_widgets()
Expand Down

0 comments on commit b528a40

Please sign in to comment.