All Projects → halsafar → libtmx-parser

halsafar / libtmx-parser

Licence: MIT License
C++ TMX File Parser - Reads Tiled Map Editor files

Programming Languages

C++
36643 projects - #6 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to libtmx-parser

RawSalmonEngine
A game engine utilising "Tiled" map files
Stars: ✭ 15 (-44.44%)
Mutual labels:  tmx-files

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 Base64 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 is being used, as it is very lightweight and game dev friendly

Required files

  • tmxparser.h/.cpp
  • base64.h/cpp
  • tinyxml2.h/.cpp

Required flags

-std=c++11

#USAGE

tmxparser::TmxMap map;
tmxparser::TmxReturn error = tmxparser::parseFromFile("example.tmx", &map);
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].