From 204fa66e2286cc1d72f2702a2b45886c5445c157 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sat, 30 Apr 2022 22:06:01 -0700 Subject: [PATCH] Place player and NPC in the map, not in the whole console --- roguebasin/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roguebasin/main.py b/roguebasin/main.py index 3bd7b8d..1e74454 100644 --- a/roguebasin/main.py +++ b/roguebasin/main.py @@ -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)