Fix tile rendering

This commit is contained in:
2021-09-07 10:53:39 +01:00
parent 6ecd739d6f
commit 45bbf9b005
14 changed files with 66 additions and 100 deletions
+4 -4
View File
@@ -4,12 +4,12 @@ module Data.Tile
import Geometry.Data
import Control.Lens
data Tile = Tile
{ _tilePoly :: [Point2]
, _tileCenter :: Point2
, _tileX :: Point2
, _tileY :: Point2
, _tileZ :: Float
, _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