Move toward indexed external placements
This commit is contained in:
@@ -47,8 +47,11 @@ diagonalLinesRect pa pb w d ang = zip lhsPoints $ map findDiPoint lhsPoints
|
||||
thinHighBar :: Float -> Point2 -> Point2 -> Shape
|
||||
thinHighBar = highBar 3
|
||||
|
||||
thinHighBarLoop :: Float -> [Point2] -> Shape
|
||||
thinHighBarLoop h = foldMap (uncurry $ thinHighBar h) . loopPairs
|
||||
|
||||
thinHighBarChain :: Float -> [Point2] -> Shape
|
||||
thinHighBarChain h = foldMap (uncurry $ thinHighBar h) . loopPairs
|
||||
thinHighBarChain h = foldMap (uncurry $ thinHighBar h) . chainPairs
|
||||
|
||||
thickHighBar :: Float -> Point2 -> Point2 -> Shape
|
||||
thickHighBar = highBar 5
|
||||
|
||||
@@ -16,7 +16,7 @@ import Data.Tree
|
||||
import Control.Monad.State
|
||||
import Control.Lens
|
||||
import System.Random
|
||||
import qualified Data.IntMap.Strict as IM
|
||||
--import qualified Data.IntMap.Strict as IM
|
||||
|
||||
rezBox :: Room
|
||||
rezBox = shiftRoomBy (V2 (-20) (-10),0) $ roomRect 40 20 1 1
|
||||
@@ -38,8 +38,6 @@ startRoom = do
|
||||
]
|
||||
treeFromPost [Left rezBox, Left door] . Right
|
||||
<$> randomiseOutLinks
|
||||
((shiftRoomBy (V2 (-20) (-20),0)
|
||||
$ roomRectAutoLinks w h & rmPmnts %~ (plmnts ++)
|
||||
& rmStartWires .~ IM.fromList [(0,RoomWire (V2 0 0) 0)]
|
||||
& rmEndWires .~ IM.fromList [(0,RoomWire (V2 500 500) 0)]
|
||||
(shiftRoomBy (V2 (-20) (-20),0)
|
||||
( roomRectAutoLinks w h & rmPmnts %~ (plmnts ++)
|
||||
) & rmShift .~ (0,0) )
|
||||
|
||||
Reference in New Issue
Block a user