DEVLOCAL adjusted

pull/2/head
kaqu 2 years ago
parent d6b422be3c
commit feb871ade4
  1. 4
      pandemic_pong.py

@ -13,7 +13,7 @@ History:
02.12.20/KQ Streamlined version published
"""
DEVLOCAL = True # TODO: Adjust for publication to False!!!
DEVLOCAL = False # TODO: Adjust for publication to False!!!
import sys, os, fcntl, time, random
from glob import glob
@ -303,7 +303,7 @@ if __name__ == '__main__':
if DEVLOCAL == True: # 2 gamepads required FOR LOCAL DEVELOPMENT ONLY!
player2 = PongPlayer(sEventQueue2, False, player_index, player_server, pgc.GAMEAREA_MAX_X-40, pgc.GAMEAREA_MAX_Y/2-50, 20, 160)
else: # 2nd player assumed on 1st gamepad (only one pad required ... !)
player2 = PongPlayer(sEventQueue1, False, player_index, player_server, pgc.GAMEAREA_MAX_X-40, pgc.GAMEAREA_MAX_Y/2-50, 20, 160)
player2 = PongPlayer(sEventQueue2, False, player_index, player_server, pgc.GAMEAREA_MAX_X-40, pgc.GAMEAREA_MAX_Y/2-50, 20, 160)
# TODO: Pretty ugly patch for handler data access ... (better: separate sender class)
vs.init_send_structures(game, player1, player2, ball)

Loading…
Cancel
Save