Skip to content

Instantly share code, notes, and snippets.

@orofarne
Created February 4, 2015 10:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save orofarne/6edc84df91a08f908373 to your computer and use it in GitHub Desktop.
Save orofarne/6edc84df91a08f908373 to your computer and use it in GitHub Desktop.
mod_tile data
#define META_MAGIC "META"
#define META_MAGIC_COMPRESSED "METZ"
struct entry {
int offset;
int size;
};
struct meta_layout {
char magic[4];
int count; // METATILE ^ 2
int x, y, z; // lowest x,y of this metatile, plus z
struct entry index[]; // count entries
// Followed by the tile data
// The index offsets are measured from the start of the file
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment