Permalink
Browse files

fixed client quit

  • Loading branch information...
Alec Goebel
Alec Goebel committed Apr 30, 2012
1 parent 46b6344 commit f3ad94b92250750dfbc08ff8fedd852418eafcd9
Showing with 4 additions and 1 deletion.
  1. +4 −1 samplecode/networking_example/coinget/client/game.py
@@ -58,7 +58,10 @@ def setup(self):
self.players.add_sprite(player)
def handle_event(self, event):
- self.controller.handle_event(event)
+ if event.type == KEYDOWN and event.key == K_ESCAPE:
+ self.app.quit()
+ else:
+ self.controller.handle_event(event)
def update(self, dt):
self.world.update(dt)

0 comments on commit f3ad94b

Please sign in to comment.