GithubHelp home page GithubHelp logo

bernhardfritz / tmxparser Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sainteos/tmxparser

0.0 3.0 0.0 545 KB

C++11 library for parsing the maps generated by the Map Editor called Tiled.

Home Page: https://sainteos.github.io/tmxparser-docs

License: Other

CMake 0.77% C++ 44.86% C 54.37%

tmxparser's Introduction

tmxparser

Build Status

This is a C++11 library for parsing the maps generated by Tiled Map Editor.

The TMX format is based upon XML and may contain compressed and encoded tile data to save memory and reduce file sizes. This parser uses the TinyXML2 library and its DOM interface to parse TMX files.

An example file is provided to understand how to use the library.

Features

  • Conformity with the TMX specification page. (Current Version Support is 1.0)
  • Decodes and decompresses tile data.
  • Can parse properties as integers, real numbers, and literals (strings).
  • Can parse the map file when stored in memory.
  • Does not rely on any graphics library.
  • Animated tile support.
  • Group Layer support.

Dependencies

  • zlib
  • TinyXML2 >= 6.0.0

Installation

mkdir build
cd build
cmake ..
make
sudo make install

To Run The Tests

After make, there will be several artifacts within build/. One of which is called run_tests. The test runner expects to be in the test/ folder so the links to reference files for the tests will be where it expects them to be.

...
make
sudo make install
mv run_tests ../test/
cd ../test/
./run_tests

tmxparser's People

Contributors

acedio avatar andrewrk avatar azp avatar bernhardfritz avatar bfloch avatar bjorn avatar chaosed0 avatar drriguz avatar dylanetaft avatar georgeraraujo avatar jamienicol avatar krux02 avatar mrsiggler avatar robloach avatar sainteos avatar sakarah avatar saluev avatar sgtcodfish avatar tardo avatar tomifischer avatar vheuken avatar wasabi2007 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.