I was thinking we can use the flexibility of Tiled and the XML format to add a few "official" extensions, specifically something that might come really handy: parallax support for some layers.
The extensions should not be hard to add: just define a set of properties that layers/tiles can have.
In order for parallax to work, TXMTiledMap should inherit from ParallaxNode instead of CocosNode... It should be pretty easy to do this (I'm willing to add some code).
So... if you're ok with this, we need to define those properties. We could prefix them with 'cc' in order to not have any conflicts with other properties.
For the layers, I'm thinking in the Parallax property. The parallax is a ratio, so we could define it as a string with the (scanf) format: "%f,%f", and it might be named "cc_parallax_ratio". In a more formal definition (we could add these properties in the wiki):
- Layer
- cc_parallax_ratio: String of the format "%f,%f". Example: "0.5,0.4" -> parallax ratio of 0.5 on the X axis and 0.4 on the Y axis
- cc_position_offset: String of the format "%f,%f". Example: "0.5,0.4" -> position offset of 0.5 on the X axis and 0.4 on the Y axis
If riq is ok I could add support for this.
rolando.