gdxpacker-wrapper

0.0.6 • Public • Published

Installation

npm i -D gdxpacker-wrapper

Usage

const pack = require("gdxpacker-wrapper");

pack.exec()
    .then(() => console.log("Completed"))
    .catch(er => {
        console.error(er)
    });

Create or run the exec function to generate a packerConfig.json which contains array of packing configs

{
  "unpackingConfigs": [
    {
      "name": "Unpack 1",
      "atlasToUnpack": "packed",
      "outputDirectory": "output"
    }
  ],
  "packingConfigs": [
    {
      "name": "Pack 1",
      "rawDirectory": "input",
      "outputDirectory": "output",
      "packName": "packed"
    }
  ]
}

Each packing config contains name for debug, the input and output directories and the name for the generated packed atlas. Unpacking is also supported via the unpackingConfigs array. Unpacking happens first

Follows libgdx packing rules, pack.json files are read in packing destinations to override rules for each sub folder

Readme

Keywords

none

Package Sidebar

Install

npm i gdxpacker-wrapper

Weekly Downloads

1

Version

0.0.6

License

Apache-2.0

Unpacked Size

18.9 kB

Total Files

5

Last publish

Collaborators

  • tomwojciechowski