Move main to allow for new executables
This commit is contained in:
+15
-15
@@ -31,8 +31,8 @@ airlockOneWay n = defaultRoom
|
||||
--, _rmBound = rectNSWE 90 30 (-30) 30
|
||||
, _rmBound = [rectNSWE 75 15 0 40]
|
||||
}
|
||||
where lnks = [((V2 0 85),0)
|
||||
,((V2 0 5),pi)
|
||||
where lnks = [(V2 0 85,0)
|
||||
,(V2 0 5,pi)
|
||||
]
|
||||
cond w = or $ M.lookup (DoorNumOpen n) (_worldState w)
|
||||
col = dim $ dim $ bright red
|
||||
@@ -56,8 +56,8 @@ airlock0 n = defaultRoom
|
||||
, rectNSWE 65 35 (-40) 20
|
||||
]
|
||||
, _rmLinks = lnks
|
||||
, _rmPath = [((V2 20 95),(V2 20 45))
|
||||
,((V2 20 45),(V2 20 5))
|
||||
, _rmPath = [(V2 20 95,V2 20 45)
|
||||
,(V2 20 45,V2 20 5)
|
||||
]
|
||||
, _rmPS =
|
||||
[sPS (V2 0 20) 0 $ PutDoubleDoor col (not . cond) (V2 1 0) (V2 39 0)
|
||||
@@ -65,13 +65,13 @@ airlock0 n = defaultRoom
|
||||
,sPS (V2 35 50) (pi/2) $ PutButton $ makeSwitch col
|
||||
(over worldState (M.insert (DoorNumOpen n) True))
|
||||
(over worldState (M.insert (DoorNumOpen n) False))
|
||||
,sPS (V2 (-25) ( 50)) 0 putLamp
|
||||
,sPS (V2 (-25) 50) 0 putLamp
|
||||
]
|
||||
, _rmBound = [rectNSWE 75 15 0 40]
|
||||
}
|
||||
where
|
||||
lnks = [((V2 20 95),0)
|
||||
,((V2 20 5),pi)
|
||||
lnks = [(V2 20 95,0)
|
||||
,(V2 20 5,pi)
|
||||
]
|
||||
cond w = or $ M.lookup (DoorNumOpen n) (_worldState w)
|
||||
col = dim $ dim $ bright red
|
||||
@@ -91,12 +91,12 @@ airlock90 n = defaultRoom
|
||||
]
|
||||
]
|
||||
, _rmLinks =
|
||||
[((V2 0 40),pi/2)
|
||||
,((V2 40 0),pi)
|
||||
[(V2 0 40,pi/2)
|
||||
,(V2 40 0,pi)
|
||||
]
|
||||
, _rmPath =
|
||||
[((V2 0 40),(V2 40 0))
|
||||
,((V2 40 0),(V2 0 40))
|
||||
[(V2 0 40,V2 40 0)
|
||||
,(V2 40 0,V2 0 40)
|
||||
]
|
||||
, _rmPS =
|
||||
[sPS (V2 5 5) 0 $ PutDoor col (not . cond) pss
|
||||
@@ -116,7 +116,7 @@ airlock90 n = defaultRoom
|
||||
where
|
||||
cond w = or $ M.lookup (DoorNumOpen n) (_worldState w)
|
||||
col = dim $ dim $ bright red
|
||||
pss = ((V2 0 0) ,) <$> arcStepwise 3 (negate $ pi/2) (V2 0 0) (V2 0 55)
|
||||
pss = (V2 0 0 ,) <$> arcStepwise 3 (negate $ pi/2) (V2 0 0) (V2 0 55)
|
||||
|
||||
airlockCrystal
|
||||
:: Int -- ^ Door id
|
||||
@@ -132,8 +132,8 @@ airlockCrystal n = defaultRoom
|
||||
]
|
||||
]
|
||||
, _rmLinks =
|
||||
[((V2 20 130),0)
|
||||
,((V2 20 0),pi)
|
||||
[(V2 20 130,0)
|
||||
,(V2 20 0 ,pi)
|
||||
]
|
||||
, _rmPath =
|
||||
[
|
||||
@@ -154,5 +154,5 @@ airlockCrystal n = defaultRoom
|
||||
cond w = or $ M.lookup (DoorNumOpen n) (_worldState w)
|
||||
col = dim $ dim $ bright red
|
||||
pss :: [(Point2,Point2)]
|
||||
pss = reverse $ fmap ( (\x -> ((V2 50 x),(V2 (50) (x+50))) ) . fromIntegral)
|
||||
pss = reverse $ fmap ( (\x -> (V2 50 x,V2 50 (x+50)) ) . fromIntegral)
|
||||
[20::Int,22..70]
|
||||
|
||||
Reference in New Issue
Block a user