Fix rendering issue
This commit is contained in:
parent
f3bce99120
commit
ef784c2dbc
9 changed files with 28 additions and 25 deletions
|
@ -48,7 +48,7 @@ renderLevel Level{ layout = l, items = i, entities = e } = level
|
|||
entities = renderEntities e
|
||||
|
||||
renderLayout :: Layout -> Picture
|
||||
renderLayout strips = pictures [setRenderPos 0 y (renderStrip (strips !! y)) | y <- [0 .. count]]
|
||||
renderLayout strips = pictures [setRenderPos 0 (count - y) (renderStrip (strips !! y)) | y <- [0 .. count]]
|
||||
where count = length strips - 1
|
||||
|
||||
renderStrip :: [Physical] -> Picture
|
||||
|
|
Reference in a new issue