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
Allow player movement beyond central map. Lots of mapping rewrite.
[plomrogue2-experiments]
/
new
/
plomrogue
/
commands.py
diff --git
a/new/plomrogue/commands.py
b/new/plomrogue/commands.py
index bd740b7404999e7d894da1ff8b1ce14e6f86204f..bcab2d10702c13bda99a2fee684e210b5e7fa979 100644
(file)
--- a/
new/plomrogue/commands.py
+++ b/
new/plomrogue/commands.py
@@
-15,7
+15,7
@@
def cmd_SEED(game, seed):
cmd_SEED.argtypes = 'int:nonneg'
def cmd_MAP_SIZE(game, size):
cmd_SEED.argtypes = 'int:nonneg'
def cmd_MAP_SIZE(game, size):
- game.
world.
map_size = size
+ game.map_size = size
cmd_MAP_SIZE.argtypes = 'yx_tuple:pos'
def cmd_MAP(game, map_pos):
cmd_MAP_SIZE.argtypes = 'yx_tuple:pos'
def cmd_MAP(game, map_pos):
@@
-104,7
+104,7
@@
def cmd_SAVE(game):
with open(save_file_name, 'w') as f:
write(f, 'TURN %s' % game.world.turn)
write(f, 'SEED %s' % game.world.rand.prngod_seed)
with open(save_file_name, 'w') as f:
write(f, 'TURN %s' % game.world.turn)
write(f, 'SEED %s' % game.world.rand.prngod_seed)
- write(f, 'MAP_SIZE %s' % (game.
world.
map_size,))
+ write(f, 'MAP_SIZE %s' % (game.map_size,))
for map_pos in game.world.maps:
write(f, 'MAP %s' % (map_pos,))
for map_pos in game.world.maps:
for map_pos in game.world.maps:
write(f, 'MAP %s' % (map_pos,))
for map_pos in game.world.maps: