Skip to content
Snippets Groups Projects
Unverified Commit 216c2b6c authored by stuebinm's avatar stuebinm
Browse files

add warning for very large tileset images

parent 09ac7d3d
No related branches found
No related tags found
No related merge requests found
......@@ -76,9 +76,10 @@ checkTileset tileset = do
-- reject tilesets unsuitable for workadventure
unless (tilesetTilewidth tileset == 32 && tilesetTileheight tileset == 32)
$ complain $ "Tileset " <> tilesetName tileset <> " must have tile size 32 by 32"
$ complain $ "Tileset " <> tilesetName tileset <> " must have tile size 32×32"
unless (tilesetImageheight tileset < 4096 && tilesetImagewidth tileset < 4096)
$ warn $ "Tileset " <> tilesetName tileset <> " should not be larger than 4096×4096 pixels in total"
-- | Checks a single (custom) property of a layer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment