Author: Hai Hoang
-
Config file: see
texture_packer_v3.json
. -
Options:
params
:ARRAY
of texture packer options https://www.codeandweb.com/texturepacker/documentation/texture-settingsauto_alias
: see v2.data_extension
: see v2.force_identical_layout
: see v2.input_files
:ARRAY
ofARRAY
ofSTRING
: relative input images directories.output_path
:ARRAY
ofSTRING
: relative output sheet/data files directory.rotation
: see v2.sheet_extension
: see v2.children
:ARRAY
of options: specify the children options.
-
Run pack.js to run packer as client:
-
Prerequisite:
npm i argparse async-mutex fs-extra glob jszip node-fetch md5 pako
-
Command line:
-t
or--type
: specify the packer type:remote
to pack remotely orlocal
to pack locally.-a
or--address
: specify the remote packer, only required if type is remote.-i
or--input
: specify the input config file path.-o
or--output
: specify the output directory.
-
Run pack_server.js to run packer as server:
-
Prerequisite:
npm i body-parser express fs-extra jszip
-
Note: default port is 3456
- See sample
texture_packer.json
. - Settings files (
.json
) in subdirectories are inherited from their parent directories. - Options:
- All texture packer options https://www.codeandweb.com/texturepacker/documentation except single options (e.g.
--enable-rotation
,--premultiply-alpha
). flatten_path
:BOOL
Whether or not to flatten the sprite frame output relative path, default isTrue
.sheet_extension
:STRING
Output sheet extension, default ispvr.ccz
.data_extension
:STRING
Output data extension, default isplist
.input_directories
:ARRAY
ofSTRING
Relative input images directories, default is['.']
(images in the current directory).combine_images
:BOOL
Whether or not to combine images in input directories to a single output or pack separate images, default isTrue
.rotation
:BOOL
Use this instead of--enable-rotation
and--disable-rotation
, default isFalse
.premultiply_alpha
:BOOL
Use this instead of--premultiply-alpha
, default isFalse
.auto_alias
:BOOL
Use this instead of--disable-auto-alias
, default isTrue
.force_identical_layout
:BOOL
Use this instead of--force-identical-layout
, default isFalse
.
- All texture packer options https://www.codeandweb.com/texturepacker/documentation except single options (e.g.
- Notes:
--content-protection
:STRING
Settings this key to empty to disable (inherited) encryption.