Start work on pathfinding
This commit is contained in:
@@ -200,8 +200,8 @@ drawCreatureDisplayTexts w = foldMap (creatureDisplayText w) (w ^. cWorld . lWor
|
||||
|
||||
drawPathBetween :: World -> Picture
|
||||
drawPathBetween w = concat $ do
|
||||
sp <- w ^. input . clickPos . at ButtonLeft
|
||||
ep <- w ^. input . clickPos . at ButtonRight
|
||||
sp <- w ^. input . heldWorldPos . at ButtonLeft
|
||||
ep <- w ^. input . heldWorldPos . at ButtonRight
|
||||
let nodepos = (`getNodePos` w)
|
||||
nodelist = makePathBetween sp ep w
|
||||
return . setLayer DebugLayer $
|
||||
|
||||
Reference in New Issue
Block a user