change the poorly integrated "walkable-tile-check"
This commit is contained in:
@ -11,7 +11,7 @@ from tools import Worker, Isovist, TrackCollection, IndoorToolset # , Track, Is
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
walkableTiles = 255
|
||||
walkableTiles = [255, 103, 210, 79]
|
||||
trackColor = 103
|
||||
startColor = 210
|
||||
endColor = 79
|
||||
@ -82,7 +82,7 @@ if __name__ == '__main__':
|
||||
if False:
|
||||
point = baseToolset.getRandomPos()
|
||||
print(point)
|
||||
i = Isovist(*point, array=baseToolset.imgArray, walkable=walkableTiles, rangeLimit=30)
|
||||
i = Isovist(*point, array=baseToolset.imgArray, walkables=walkableTiles, rangeLimit=30)
|
||||
i.saveImg()
|
||||
baseToolset.imgArray[point] = 160
|
||||
imshow(baseToolset.imgArray)
|
||||
|
Reference in New Issue
Block a user