From e746dd1ddb0f5c18d7ade4db0cdbdb3ad41ae051 Mon Sep 17 00:00:00 2001 From: Frederic Date: Wed, 28 Dec 2016 00:09:24 +0100 Subject: [PATCH 1/2] a little less debug output --- ttrs.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ttrs.py b/ttrs.py index 7f9a657..82bc623 100755 --- a/ttrs.py +++ b/ttrs.py @@ -263,7 +263,7 @@ class BalanceTtrsPlayer(TtrsPlayer, threading.Thread): elif self.player_id == 1: xbal, ybal = p1x, p1y - print('player_id=%d xbal=%d ybal=%d' % (self.player_id, xbal, ybal)) + #print('player_id=%d xbal=%d ybal=%d' % (self.player_id, xbal, ybal)) if xbal == -128 or ybal == -128: self.evt = PlayerEvent.QUIT @@ -293,7 +293,7 @@ class BalanceTtrsPlayer(TtrsPlayer, threading.Thread): oldevt = evt if time.time() - lastchange < MIN_TIMES.get(evt, 0): - print('player_id=%d debounce %s' % (self.player_id, evt)) + #print('player_id=%d debounce %s' % (self.player_id, evt)) continue if evt == PlayerEvent.ROTATE: @@ -302,11 +302,12 @@ class BalanceTtrsPlayer(TtrsPlayer, threading.Thread): else: self.evt = evt self.lastevt = evt - print('player_id=%d event=%s' % (self.player_id, self.evt)) + #print('player_id=%d event=%s' % (self.player_id, self.evt)) def get_event(self): + print('player_id=%d event=%s' % (self.player_id, self.evt)) evt = self.evt self.evt = None return evt From 7cff026d6957625164ec46e55ddb9ce8a4b3b75c Mon Sep 17 00:00:00 2001 From: Frederic Date: Wed, 28 Dec 2016 00:21:12 +0100 Subject: [PATCH 2/2] a little less debug output --- pong.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pong.py b/pong.py index a2994e5..16b2523 100644 --- a/pong.py +++ b/pong.py @@ -262,7 +262,7 @@ class Playground(object): break for callback in self.__gameTickCallbacks: - print(callback) + #print(callback) callback() if ball.xpos >= self.width: