home
·
contact
·
privacy
projects
/
plomrogue2-experiments
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix screen jumping around.
[plomrogue2-experiments]
/
new2
/
rogue_chat.py
diff --git
a/new2/rogue_chat.py
b/new2/rogue_chat.py
index afaeef9835a52a96f23638d46bd1ce93982f04b4..d2f0a244014b8b3436182f22f9b708bf8c6bcaad 100755
(executable)
--- a/
new2/rogue_chat.py
+++ b/
new2/rogue_chat.py
@@
-1,6
+1,7
@@
#!/usr/bin/env python3
from plomrogue.game import Game
from plomrogue.io_websocket import PlomWebSocketServer
#!/usr/bin/env python3
from plomrogue.game import Game
from plomrogue.io_websocket import PlomWebSocketServer
+from plomrogue.io_tcp import PlomTCPServer
import sys
if len(sys.argv) != 2:
import sys
if len(sys.argv) != 2:
@@
-8,4
+9,6
@@
if len(sys.argv) != 2:
exit(1)
savefile = sys.argv[1]
game = Game(savefile)
exit(1)
savefile = sys.argv[1]
game = Game(savefile)
-game.io.run_loop_with_server(8000, PlomWebSocketServer)
+game.io.start_loop()
+game.io.start_server(8000, PlomWebSocketServer)
+game.io.start_server(5000, PlomTCPServer)