开发者

How to save tmx file with CCTMXTiledMap

开发者 https://www.devze.com 2023-02-15 06:11 出处:网络
CCTMXTiledMap *map = [CCTMXTiledMap tiledMapWithTMXFile:@\"mapTmx.tmx\"]; CCTMXLayer *l开发者_如何学Cayer = [map layerNamed:@\"Layer 0\"];
CCTMXTiledMap *map = [CCTMXTiledMap tiledMapWithTMXFile:@"mapTmx.tmx"];
CCTMXLayer *l开发者_如何学Cayer = [map layerNamed:@"Layer 0"];
[layer setTileGID:10  at:ccp( 0, 0 )];

How can I save "CCTMXTiledMap *map" to "mapTmx.tmx" file?


This default functionality doesn't exist. You could export a tmx through Tiled to one of the text formats and cobble together your own exporter. Not the answer you wanted, but it's a start.

0

精彩评论

暂无评论...
验证码 换一张
取 消