Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

C++ TMX File Parser - Reads Tiled Map Editor files

License

NotificationsYou must be signed in to change notification settings

halsafar/libtmx-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

C++ TMX File Parser - Reads Tiled Map Editor files

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp