DXOpal tilemap collision 2


Source code

main.rb

dxrbmapjson.rb

tilecolli.rb

Resources

Tools

convert Tiled json to collision data json.

> ruby maketilemapcollision.rb --help

Usage: maketilemapcollision [options]
    -j, --json=FILE            input JSON file name (Tiled data)
    -i, --image=FILE           input png image file name
    -l, --layer=NAME           collision layer name
    -s, --sublayer=NAME        (optional) collision layer name
    -n, --nullcode=NUMBER      null code
    -o, --output=FILE          output JSON file name
        --verbose              verbose
        --test                 test    
  

Requirement

Example

ruby maketilemapcollision.rb -j tilemap.json -i tilemap_chip.png -l layer0 -n 0 -o tilemap_colli.json
  

License

CC0 / Public Domain