0.0.6 • Published 2 years ago

gdxpacker-wrapper v0.0.6

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
2 years ago

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

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago