|
|
|
@ -367,18 +367,17 @@ if __name__ == '__main__':
@@ -367,18 +367,17 @@ if __name__ == '__main__':
|
|
|
|
|
|
|
|
|
|
p2_frame = create_2player_screen(dim) |
|
|
|
|
out.sendFrame(p2_frame) |
|
|
|
|
wait_time = 3 |
|
|
|
|
wait_time = 2 |
|
|
|
|
start = time.time() |
|
|
|
|
while time.time() < start+wait_time: |
|
|
|
|
while True: |
|
|
|
|
evt = inp2.get_event() |
|
|
|
|
if inp2.player_present: |
|
|
|
|
inp1.running = False |
|
|
|
|
inp2.running = False |
|
|
|
|
start_game(game, 2) |
|
|
|
|
elif evt == InputEvent.QUIT: |
|
|
|
|
sys.exit() |
|
|
|
|
time.sleep(0.1) |
|
|
|
|
evt = inp2.get_event() |
|
|
|
|
if inp2.player_present: |
|
|
|
|
inp1.running = False |
|
|
|
|
inp2.running = False |
|
|
|
|
start_game(game, 2) |
|
|
|
|
elif evt == InputEvent.QUIT: |
|
|
|
|
sys.exit() |
|
|
|
|
time.sleep(0.1) |
|
|
|
|
|
|
|
|
|
inp1.running = False |
|
|
|
|
inp2.running = False |
|
|
|
|