bcvery1 / tilepix

Library for combining tiled maps with pixel
MIT License
46 stars 14 forks source link

Error on non-orthogonal maps #79

Open bcvery1 opened 5 years ago

bcvery1 commented 5 years ago

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 Reading a map which doesn't have orientation="orthogonal".

Need to set up a constant for each type:

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.

NullDefault commented 3 years ago

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?

bcvery1 commented 3 years ago

Hey, I'm not sure what code would need to be changed unfortunately, this has not yet been investigated.