Tweak level generation slightly

This commit is contained in:
2021-11-28 20:58:38 +00:00
parent 98e44f0eee
commit 45ba120796
4 changed files with 27 additions and 36 deletions
+3 -3
View File
@@ -1,12 +1,12 @@
module Tile
( tToRender
( tileToRenderList
, makeTileFromPoly
) where
import Data.Tile
import Geometry
tToRender :: Tile -> [(Point3,Point3)]
tToRender t = polyToTris $ zip ps3 coords3
tileToRenderList :: Tile -> [(Point3,Point3)]
tileToRenderList t = polyToTris $ zip ps3 coords3
where
ps = _tilePoly t
coords = map (calcTexCoord (_tileZero t) (_tileX t)) ps