|
|
|
@ -74,15 +74,13 @@ def convertPixels(dimension, pixels, invert=False):
@@ -74,15 +74,13 @@ def convertPixels(dimension, pixels, invert=False):
|
|
|
|
|
return p |
|
|
|
|
|
|
|
|
|
class BalanceBoardPlayer(object): |
|
|
|
|
def __init__(self, playground, ownPaddle, wiimote_sock, player_id): |
|
|
|
|
def __init__(self, playground, own_paddle, balance_util): |
|
|
|
|
self.__playground = playground |
|
|
|
|
self.__ownPaddle = ownPaddle |
|
|
|
|
self.__wiimote = wiimote_sock |
|
|
|
|
self.__ownPaddle = own_paddle |
|
|
|
|
self.__ready = False |
|
|
|
|
|
|
|
|
|
self.__playground.addGameTickCallback(self.gametickcb) |
|
|
|
|
self.__wiimote_sock = wiimote_sock |
|
|
|
|
self.__player_id = player_id |
|
|
|
|
self.__balance_util = balance_util |
|
|
|
|
|
|
|
|
|
@property |
|
|
|
|
def ownPaddle(self): |
|
|
|
|