Add variable door speed, still buggy
This commit is contained in:
@@ -41,6 +41,6 @@ mkAutoDoor
|
||||
-> Point2 -- ^ Right point (though the two points should be symmetric)
|
||||
-> [Int] -- ^ Wall ids
|
||||
-> [Wall]
|
||||
mkAutoDoor pl pr = mkDoubleDoor (dim yellow) True cond pl pr
|
||||
mkAutoDoor pl pr = mkDoubleDoor (dim yellow) True cond pl pr 3
|
||||
where
|
||||
cond = any (crNearSeg 40 pl pr) . IM.filter isAnimate . _creatures
|
||||
|
||||
Reference in New Issue
Block a user