Files
loop/src/Data/Tile.hs
T
2021-09-07 10:53:39 +01:00

16 lines
367 B
Haskell

{-# LANGUAGE TemplateHaskell #-}
module Data.Tile
where
import Geometry.Data
import Control.Lens
data Tile = Tile
{ _tilePoly :: [Point2]
, _tileZero :: Point2 -- ^ point in the world where tile texture is 0,0
, _tileX :: Point2 -- ^ vector in the X direction (1,0)
, _tileZ :: Float
}
deriving (Eq, Ord, Show)
makeLenses ''Tile