Commit Graph

7 Commits

Author SHA1 Message Date
Dylan Wilson c6c540c22a code cleanup 2018-11-05 20:29:23 +10:00
stefanrbk 433e458af0 Real Tiled Group Support (#522)
* Change from storing layers by index to Dictionary key

Models are now stored with the `TiledMapLayer` they are part of.

* Allow render calls via TiledMapLayer

* Add TiledMapGroupLayer and model build recursion for groups

* Add rendering support for TiledMapGroupLayer

* Update TiledMapReader to read TiledMapGroupLayers

* Update Features Demo to Include a Map with a Layer Group

* Update TiledMapWriter and TiledMapProcessor to Support Groups

* Update TiledMap to Report Layers Correctly
2018-07-08 21:34:07 +10:00
stefanrbk 044712f6aa Added remaining .TMX format features
Added the remaining features of the .TMX Tiled Map format. Removed the parts of the format which aren't needed for rendering, like `TiledMapTerrainContent`. Terrains and the newer WangSets are only used in constructing a map, not for rendering. Added exception throws for non-implemented parts of the format.
2018-06-09 13:45:02 -05:00
stefanrbk 119026ea50 Decoupled FirstGlobalIdentifier from Tileset
`FirstGlobalIdentifier` is only used with the map to reference the tileset which contains the tile referenced. It isn't really part of the definition of a `TiledMapTileset` even though the `.TMX` format includes it with the `<tileset>` tag
2018-06-06 14:59:38 -05:00
Dylan Wilson 4090822e2b added tiled image layers back in 2017-11-27 20:45:41 +10:00
Dylan Wilson 9d24bb6091 fixed a range of bugs and issues with the new map renderer 2017-11-21 20:57:32 +10:00
Dylan Wilson 107ba06326 almost back to parity 2017-11-21 20:57:32 +10:00