Place player and NPC in the map, not in the whole console
This commit is contained in:
parent
4f6361a7ce
commit
204fa66e22
1 changed files with 2 additions and 2 deletions
|
@ -23,8 +23,8 @@ LOG = logging.getLogger('roguebasin')
|
|||
|
||||
MAP_WIDTH, MAP_HEIGHT = 80, 45
|
||||
|
||||
PLAYER = Object('@', x=CONSOLE_WIDTH // 2, y=CONSOLE_HEIGHT // 2)
|
||||
NPC = Object('@', color=tcod.yellow, x=random.randint(0, CONSOLE_WIDTH), y=random.randint(0, CONSOLE_HEIGHT))
|
||||
PLAYER = Object('@', x=MAP_WIDTH // 2, y=MAP_HEIGHT // 2)
|
||||
NPC = Object('@', color=tcod.yellow, x=random.randint(0, MAP_WIDTH), y=random.randint(0, MAP_HEIGHT))
|
||||
|
||||
def parse_args(argv, *a, **kw):
|
||||
parser = argparse.ArgumentParser(*a, **kw)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue