Add frame clock
This commit is contained in:
@@ -22,9 +22,7 @@ createPathGrid rm = rm
|
||||
{ _rmPath = linksAndPath (_rmLinks rm) filterGrid }
|
||||
where
|
||||
filterGrid = filter (\p -> pairInPolys (_rmPolys rm) p && testCrossWalls outerWalls p) grid
|
||||
grid = case shiftedGrid <$> minx <*> maxx <*> miny <*> maxy of
|
||||
Nothing -> []
|
||||
Just xs -> xs
|
||||
grid = fromMaybe [] $ shiftedGrid <$> minx <*> maxx <*> miny <*> maxy
|
||||
outerWalls = foldr cutPoly [] $ _rmPolys rm
|
||||
outerPoints = map fst outerWalls
|
||||
(minx, maxx, miny, maxy) = L.fold theFold outerPoints
|
||||
|
||||
Reference in New Issue
Block a user