|
|
|
@ -144,7 +144,7 @@ class B4lancePong(object):
@@ -144,7 +144,7 @@ class B4lancePong(object):
|
|
|
|
|
print('connected!') |
|
|
|
|
balance_util_p1 = blup.balance_util.BalanceUtil(sock, 0) |
|
|
|
|
balance_util_p2 = blup.balance_util.BalanceUtil(sock, 1) |
|
|
|
|
while not balance_util_p1.get_player1_ready(): |
|
|
|
|
while not balance_util_p1.get_player_ready(): |
|
|
|
|
print('waiting for player...') |
|
|
|
|
time.sleep(1) |
|
|
|
|
|
|
|
|
@ -159,7 +159,7 @@ class B4lancePong(object):
@@ -159,7 +159,7 @@ class B4lancePong(object):
|
|
|
|
|
self.__out.sendFrame(frame) |
|
|
|
|
|
|
|
|
|
print('waiting for second player...') |
|
|
|
|
if balance_util_p2.get_player2_ready: |
|
|
|
|
if balance_util_p2.get_player_ready(): |
|
|
|
|
self.__players.append(BalanceBoardPlayer(self.__playground, self.__playground.rightPaddle, |
|
|
|
|
balance_util_p2)) |
|
|
|
|
break |
|
|
|
|