Cleanup
This commit is contained in:
@@ -30,8 +30,7 @@ roomGlassOctogon x = createPathGrid $ defaultRoom
|
||||
[rectNSWE x (-x) (-x) x
|
||||
,rectNSWE 0 (-(x + 40)) (-20) 20
|
||||
]
|
||||
, _rmOutLinks = map (uncurry outLink) $ init lnks
|
||||
, _rmInLinks = [uncurry inLink $ last lnks]
|
||||
, _rmLinks = (map (uncurry outLink) $ init lnks) ++ [uncurry inLink $ last lnks]
|
||||
, _rmPath = linksAndPath lnks
|
||||
[ ( V2 0 x , V2 0 (-(x+40)))
|
||||
, ( V2 0 (-(x+40)), V2 0 x)
|
||||
@@ -86,15 +85,16 @@ roomCross x y = defaultRoom
|
||||
{ _rmPolys = [rectNSWE y (-y) (-x) x
|
||||
,rectNSWE (-x) x y (-y)
|
||||
]
|
||||
, _rmOutLinks = map (uncurry outLink)
|
||||
, _rmLinks = map (uncurry outLink)
|
||||
[(V2 x (y-20),negate $ pi/2)
|
||||
,(V2 x (20-y),negate $ pi/2)
|
||||
,(V2 (20-y) x ,0)
|
||||
,(V2 (y-20) x ,0)
|
||||
,(V2 (-x) (y-20),pi/2)
|
||||
,(V2 (-x) (20-y),pi/2)
|
||||
,(V2 (20-y) (-x),pi) ]
|
||||
, _rmInLinks = [uncurry inLink $ (V2 (y-20) (-x),pi)
|
||||
,(V2 (20-y) (-x),pi)
|
||||
] ++
|
||||
[uncurry inLink $ (V2 (y-20) (-x),pi)
|
||||
]
|
||||
, _rmPath = []
|
||||
, _rmPmnts =
|
||||
@@ -121,8 +121,7 @@ roomShuriken x y =
|
||||
] ]
|
||||
corner = defaultRoom
|
||||
{ _rmPolys = ps
|
||||
, _rmOutLinks = [uncurry outLink (V2 (x-1) (y-20),negate $ pi/2)]
|
||||
, _rmInLinks = [uncurry inLink (V2 (x-1) (y-20),negate $ pi/2)]
|
||||
, _rmLinks = [toBothLnk (V2 (x-1) (y-20),negate $ pi/2)]
|
||||
, _rmPath = []
|
||||
, _rmPmnts = [mntLS iShape (V2 x x) (V3 (x-20) x 70)]
|
||||
, _rmBound = ps
|
||||
@@ -147,8 +146,7 @@ roomTwistCross x y z =
|
||||
]
|
||||
corner = defaultRoom
|
||||
{ _rmPolys = ps
|
||||
, _rmOutLinks = [toBothLnk (V2 z (y-20), pi/2)]
|
||||
, _rmInLinks = [toBothLnk (V2 z (y-20), pi/2)]
|
||||
, _rmLinks = [toBothLnk (V2 z (y-20), pi/2)]
|
||||
, _rmPath = []
|
||||
, _rmPmnts = [mntLS iShape (V2 x x) (V3 (x-20) (x-20) 70)]
|
||||
, _rmBound = map (expandPolyCorners 10) ps
|
||||
|
||||
Reference in New Issue
Block a user