pituicat/src/Types/Map.hs

17 lines
299 B
Haskell
Raw Normal View History

2020-09-02 06:56:54 +00:00
module Types.Map where
2020-09-23 23:26:47 +00:00
2020-10-06 02:19:07 +00:00
import qualified Data.Matrix as Mat
2020-09-23 23:26:47 +00:00
import Linear
data Map = Map
2020-09-24 04:14:44 +00:00
{ mapLayers :: [(Word, Layer)] -- | (Index, Tile leyer)
, mapStart :: (Word, V2 Word) -- | (Layer index, Position)
2020-09-23 23:26:47 +00:00
}
2020-09-24 04:14:44 +00:00
2020-10-06 02:19:07 +00:00
type Layer = Mat.Matrix Tile
type Tile = V2 Float
2020-09-24 04:14:44 +00:00
type LayerDescriptor = FilePath