From d169ed2fbd3df8e153200ea5940ffbcf10cbdeba Mon Sep 17 00:00:00 2001 From: PAlexanderFranklin Date: Thu, 18 May 2023 03:42:58 -0700 Subject: [PATCH] Fix pathing --- mapgen.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mapgen.py b/mapgen.py index 678adbb..b109d4d 100644 --- a/mapgen.py +++ b/mapgen.py @@ -22,7 +22,7 @@ def generateMap(): except Exception as error: continue - for i in range(60): + for i in range(50): for j in range(50): try: spot = [random.randint(0, tileCountx - 1), random.randint(0, tileCounty - 1)] @@ -35,7 +35,7 @@ def generateMap(): except Exception as error: continue - for i in range(1): + for i in range(3): for j in range(50): try: spot = [random.randint(0, tileCountx - 1), random.randint(0, tileCounty - 1)] @@ -60,7 +60,7 @@ def generateMap(): gameMap[spot[0]][spot[1]] = player player.x = spot[0] player.y = spot[1] - player.pathMap = player.buildOwnPathMap() + player.buildOwnPathMap() break except Exception as error: continue \ No newline at end of file