patch to fix two errors in CCTMXLayer to support isometric map correctly

Hello,

I fail to upload the attachment to this bug:
http://www.cocos2d-x.org/issues/2614#

So try to describe it clearly here.

  1. getContentSize() always multiply mapSize and tileSize. It is not true for isometric map.
  2. positionAt() mix the height and width of map incorrectly.

Here is the patch against cocos2d x 2.1.4:


cocos2d-x-2.1.4-asym-iso.diff.zip (0.7 KB)


cocos2d-x-2.1.4-asym-iso.diff.zip (0.7 KB)

The asymmetrical isometric map file (10x1).

The snapshot of the test project to show asymmetrical isometric map rendered with wrong position.

And the snapshot of the test project linked with the patched cocos2d x.