Codec.Tiled.Map
data Map Source #
Constructors
Fields
Hex-formatted color (#RRGGBB or #AARRGGBB) (optional)
The compression level to use for tile layer data (defaults to -1, which means to use the algorithm default)
Number of tile rows
Length of the side of a hex tile in pixels (hexagonal maps only)
Whether the map has infinite dimensions
Array of Layers
Auto-increments for each layer
Auto-increments for each placed object
orthogonal, isometric, staggered or hexagonal
orthogonal
isometric
staggered
hexagonal
X coordinate of the parallax origin in pixels (default: 0)
Y coordinate of the parallax origin in pixels (default: 0)
Array of Properties
right-down (the default), right-up, left-down or left-up (currently only supported for orthogonal maps)
right-down
right-up
left-down
left-up
x or y (staggered / hexagonal maps only)
odd or even (staggered / hexagonal maps only)
The Tiled version used to save the file
Map grid height
Array of Tilesets
Map grid width
map
The JSON format version
Number of tile columns
Defined in Codec.Tiled.Map
Methods
parseJSON :: Value -> Parser Map #
parseJSONList :: Value -> Parser [Map] #
omittedField :: Maybe Map #
toJSON :: Map -> Value #
toEncoding :: Map -> Encoding #
toJSONList :: [Map] -> Value #
toEncodingList :: [Map] -> Encoding #
omitField :: Map -> Bool #
Associated Types
type Rep Map :: Type -> Type #
from :: Map -> Rep Map x #
to :: Rep Map x -> Map #
showsPrec :: Int -> Map -> ShowS #
show :: Map -> String #
showList :: [Map] -> ShowS #
(==) :: Map -> Map -> Bool #
(/=) :: Map -> Map -> Bool #
empty :: Map Source #
pattern ORTHOGONAL :: Text Source #
pattern ISOMETRIC :: Text Source #
pattern STAGGERED :: Text Source #
pattern HEXAGONAL :: Text Source #