X-Git-Url: https://plomlompom.com/repos/?p=plomrogue2-experiments;a=blobdiff_plain;f=server.py;h=cb9150b8d6e05a00993f6c4073057db350d8f8bc;hp=2a7b55cf530439623c022e7db0c9dadc7b250b95;hb=HEAD;hpb=9c3865bbfc4fe7721f8c2f057bce85e2300ea528 diff --git a/server.py b/server.py index 2a7b55c..cb9150b 100755 --- a/server.py +++ b/server.py @@ -17,17 +17,8 @@ if os.path.exists(game_file_name): lines = f.readlines() for i in range(len(lines)): line = lines[i] - print("FILE INPUT LINE %s: %s" % (i, line), end='') + print("FILE INPUT LINE %5s: %s" % (i, line), end='') game.io.handle_input(line, store=False) else: - game.io.handle_input('MAP Y:5,X:5') - game.io.handle_input('TERRAIN_LINE 0 "xxxxx"') - game.io.handle_input('TERRAIN_LINE 1 "x...x"') - game.io.handle_input('TERRAIN_LINE 2 "x.X.x"') - game.io.handle_input('TERRAIN_LINE 3 "x...x"') - game.io.handle_input('TERRAIN_LINE 4 "xxxxx"') - game.io.handle_input('THING_TYPE 0 human') - game.io.handle_input('THING_POS 0 Y:3,X:3') - game.io.handle_input('THING_TYPE 1 monster') - game.io.handle_input('THING_POS 1 Y:1,X:1') + game.io.handle_input('GEN_WORLD Hex Y:16,X:16 bar') game.io.run_loop_with_server()