Script for generating csv files with maps defined in tmx files (from tiled map editor).
cpct_tmx2csv [file] [options]
This script converts tmx files saved in CSV format to csv files ready to be included in C source files using #include directive. It also reindexes tile ids starting from 0 (as in tmx files tile ids start from 1).
Conversion is output to the screen.
|-h | --help||Shows help information on the terminal.|
|-gc | --generate-c||Generates a C file with an array containing converted values|
|-gh | --generate-h||Generates a H file with the declaration of the array for C file (implies -gc)|
|-of | --output-folder <folder>||Changes the output folder for generated C/H files (Default: .)|
|-ci | --c-identifier <id>||Sets the C-identifier that will be used for the generated array (Default: filename)|
|-ba | --bitarray <bits>||Generates output as an array of bits, being <bits> the amount of bits for every element (1, 2, 4 or 6)|