tilepix
tilepix copied to clipboard
Error on non-orthogonal maps
TilePix only supports orthogonal maps (currently - hopefully we'll be able to support other types in the future). A sensible error should be returned on Read
ing a map which doesn't have orientation="orthogonal"
.
Need to set up a constant for each type:
- orthogonal
- hexagonal
- isometric
- staggered
Then, using a switch
statement, check against each, returning an error if not supported, and returning a different error if default
because it is an unrecognised format.
Are there perchance any recommended workarounds to using isometric maps? Alternatively, which parts of the code would need to be updated to support non-orthogonal maps?
Hey, I'm not sure what code would need to be changed unfortunately, this has not yet been investigated.