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
Make map rendering slightly more efficient.
[plomrogue2-experiments]
/
new2
/
rogue_chat.py
diff --git
a/new2/rogue_chat.py
b/new2/rogue_chat.py
index 415b8c11299d5ad41e0d170b2d31d39aad85e611..afaeef9835a52a96f23638d46bd1ce93982f04b4 100755
(executable)
--- a/
new2/rogue_chat.py
+++ b/
new2/rogue_chat.py
@@
-1,5
+1,11
@@
#!/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
-game = Game()
+import sys
+
+if len(sys.argv) != 2:
+ print('wrong number of arguments, expected one (save file)')
+ exit(1)
+savefile = sys.argv[1]
+game = Game(savefile)
game.io.run_loop_with_server(8000, PlomWebSocketServer)
game.io.run_loop_with_server(8000, PlomWebSocketServer)