Skip to content

mupfdev/tmx-android

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TMX C Loader


About

A fork of baylej's tmx, a portable C library to load tiled maps in your games, with additional Android asset loading support.

Dependencies

This project depends on Zlib and LibXml2.

The Android related code also depends on the cwalk library by Leonard Iklé which is included in this fork.

Compiling

This project uses cmake as a build system builder. You can either use cmake, ccmake or cmake-gui.

Example :

mkdir build
cd build
cmake ..
make && make install

Usage

#include <tmx.h>

int main(void) {
  tmx_map *map = tmx_load("path/map.tmx");
  if (!map) {
    tmx_perror("tmx_load");
    return 1;
  }
  /* ... */
  tmx_map_free(map);
  return 0;
}

See the dumper example (examples/dumper/dumper.c) for an in-depth usage of TMX.

Help

See the Wiki.

Packages

No packages published

Languages

  • C 97.5%
  • CMake 2.2%
  • Makefile 0.3%