Work on chasm rooms
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
{-# LANGUAGE LambdaCase #-}
|
||||
module Dodge.Base.CardinalPoint where
|
||||
|
||||
import Dodge.Data.Room
|
||||
@@ -23,3 +24,10 @@ cardEightVec cp = case cp of
|
||||
SouthWest8 -> V2 (-1) (-1)
|
||||
West8 -> V2 (-1) 0
|
||||
NorthWest8 -> V2 (-1) 1
|
||||
|
||||
cardinalBetweenAdj :: CardinalPointBetween -> (CardinalPoint,CardinalPoint)
|
||||
cardinalBetweenAdj = \case
|
||||
NorthEast -> (North,East)
|
||||
SouthEast -> (South,East)
|
||||
SouthWest -> (South,West)
|
||||
NorthWest -> (North,West)
|
||||
|
||||
Reference in New Issue
Block a user