|
|
|
@ -149,10 +149,10 @@ class B4lancePong(object):
@@ -149,10 +149,10 @@ class B4lancePong(object):
|
|
|
|
|
time.sleep(1) |
|
|
|
|
|
|
|
|
|
self.__players = [] |
|
|
|
|
self.__players.append(BalanceBoardPlayer(self.__playground, self.__playground.leftPaddle, sock, 0)) |
|
|
|
|
self.__players.append(BalanceBoardPlayer(self.__playground, self.__playground.leftPaddle, balance_util_p1)) |
|
|
|
|
|
|
|
|
|
if self.__numplayers == 2: |
|
|
|
|
self.__players.append(BalanceBoardPlayer(self.__playground, self.__playground.rightPaddle, sock, 1)) |
|
|
|
|
self.__players.append(BalanceBoardPlayer(self.__playground, self.__playground.rightPaddle, balance_util_p2)) |
|
|
|
|
elif self.__numplayers is None: |
|
|
|
|
for i in range(5): |
|
|
|
|
frame = mk_logo_frame(self.__dimension, onePlayer) |
|
|
|
|