Fix pathing

This commit is contained in:
PAlexanderFranklin 2023-05-18 03:42:58 -07:00
parent de08303bb0
commit d169ed2fbd

View File

@ -22,7 +22,7 @@ def generateMap():
except Exception as error: except Exception as error:
continue continue
for i in range(60): for i in range(50):
for j in range(50): for j in range(50):
try: try:
spot = [random.randint(0, tileCountx - 1), random.randint(0, tileCounty - 1)] spot = [random.randint(0, tileCountx - 1), random.randint(0, tileCounty - 1)]
@ -35,7 +35,7 @@ def generateMap():
except Exception as error: except Exception as error:
continue continue
for i in range(1): for i in range(3):
for j in range(50): for j in range(50):
try: try:
spot = [random.randint(0, tileCountx - 1), random.randint(0, tileCounty - 1)] spot = [random.randint(0, tileCountx - 1), random.randint(0, tileCounty - 1)]
@ -60,7 +60,7 @@ def generateMap():
gameMap[spot[0]][spot[1]] = player gameMap[spot[0]][spot[1]] = player
player.x = spot[0] player.x = spot[0]
player.y = spot[1] player.y = spot[1]
player.pathMap = player.buildOwnPathMap() player.buildOwnPathMap()
break break
except Exception as error: except Exception as error:
continue continue