Browse Source

use balance from x axis

master
Fr3deric 4 years ago
parent
commit
e563e61cfd
  1. 3
      games/balancep0ng.py

3
games/balancep0ng.py

@ -91,7 +91,8 @@ class BalanceBoardPlayer(object):
return true return true
def gametickcb(self): def gametickcb(self):
bal = self.__balance_util.get_raw_2dir_y() # TODO: add CLI option to select axis
bal = self.__balance_util.get_raw_2dir_x()
if bal == -128: if bal == -128:
print("player %d has quit" % self.__balance_util.player_id) print("player %d has quit" % self.__balance_util.player_id)

Loading…
Cancel
Save