Zone creatures
This commit is contained in:
@@ -35,8 +35,8 @@ crsHit sp ep
|
||||
| otherwise = sortStreamOn (dist sp . fst)
|
||||
. S.mapMaybe
|
||||
(\cr -> (, cr) <$> listToMaybe (intersectCircSeg (_crPos cr) (_crRad cr) sp ep))
|
||||
. S.each
|
||||
. _creatures
|
||||
-- . S.each . _creatures
|
||||
. crsNearSeg sp ep
|
||||
|
||||
thingHit :: Point2 -> Point2 -> World -> Maybe (Point2, Either Creature Wall)
|
||||
thingHit sp ep = runIdentity . S.head_ . thingsHit sp ep
|
||||
|
||||
Reference in New Issue
Block a user