Browse Source

create BalanceBoardPlayer(s) with the respective balance_utils

feature/balanceutils
informaniac 7 years ago
parent
commit
038f33df2c
  1. 4
      games/balancep0ng.py

4
games/balancep0ng.py

@ -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)

Loading…
Cancel
Save