libtmx-parser
所属分类:C/C++工具库
开发工具:C++
文件大小:71KB
下载次数:0
上传日期:2018-05-28 16:30:44
上 传 者:
sh-1993
说明: libtmx解析器,C++TMX文件解析器-读取平铺映射编辑器文件
(libtmx-parser,C++ TMX File Parser - Reads Tiled Map Editor files)
文件列表:
.cproject (13853, 2018-05-29)
.project (813, 2018-05-29)
LICENSE (1106, 2018-05-29)
Makefile (571, 2018-05-29)
libs (0, 2018-05-29)
libs\tinyxml2 (0, 2018-05-29)
main.cpp (6749, 2018-05-29)
src (0, 2018-05-29)
src\base64.cpp (3736, 2018-05-29)
src\base64.h (1214, 2018-05-29)
src\tmxparser.cpp (27977, 2018-05-29)
src\tmxparser.h (6453, 2018-05-29)
test_files (0, 2018-05-29)
test_files\example.tmx (5842, 2018-05-29)
test_files\legend_of_zelda_one_overworld_tiles.png (11663, 2018-05-29)
test_files\super_mario_one_tileset.png (36402, 2018-05-29)
test_files\super_mario_one_tileset.tsx (641, 2018-05-29)
test_files\test_base64_level.tmx (2555, 2018-05-29)
test_files\test_csv_level.tmx (2291, 2018-05-29)
test_files\test_xml_level.tmx (3969, 2018-05-29)
test_files\test_xml_level_ext_tileset.tmx (3345, 2018-05-29)
tests (0, 2018-05-29)
tests\Makefile (596, 2018-05-29)
tests\tests.cpp (7438, 2018-05-29)
valgrind.log (720, 2018-05-29)
# libtmx-parser
## Tested Operating Systems
- Ubuntu 14.04
- Android 2.2+/3.X/4.X
## Features
- Parses tiled-qt 0.10.2 maps, version 1.0 tmx files
- Simple, returns a struct filled with map data
- Lightweight
- Using TinyXML2
- Parse XML, CSV or Base*** layers (no compression yet)
- Easy to drop into a project
# TODO
- Unit/Coverage tests
- Parse compressed layer tile data
- Parse terrain
- Check for NULLs and report errors on certain 'required' attributes
# COMPILING
- See Makefile for an example
## Requires libs
This library is included as a subrepo. You can get it by running the following in this cloned repo:
- git submodule update --init --recursive
- [TinyXml2](https://github.com/leethomason/tinyxml2) is being used, as it is very lightweight and game dev friendly
## Required files
- tmxparser.h/.cpp
- base***.h/cpp
- tinyxml2.h/.cpp
## Required flags
```
-std=c++11
```
#USAGE
```Cpp
tmxparser::TmxMap map;
tmxparser::TmxReturn error = tmxparser::parseFromFile("example.tmx", &map);
```
近期下载者:
相关文件:
收藏者: