Phaser and Pixi.js game engine asset and manifest command line generator.
- Converts WAV audio files to MP3 and OGG formats
- Converts PNG image files to AVIF and WEBP formats
- Resizes images to multiple resolutions
- Generates audio sprite files
- Generates sprite sheet files
- Creates pixi.js asset bundle JSON manifest
- Creates phaser resource pack JSON manifest
- node.js
- sox
- texture-packer
- imagemagick (optional)
- ffmpeg (optional)
$ curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash -
$ sudo apt-get update
$ sudo apt-get install -y nodejs sox libsox-fmt-mp3
$ sudo apt-get install -y imagemagick ffmpeg
This is an optional step because Phixify uses the Sharp image library by default.
https://github.com/SoftCreatR/imei#one-step-automated-install
$ t=$(mktemp) && wget 'https://dist.1-2.dev/imei.sh' -qO "$t" && bash "$t" && rm "$t"
$ brew update
$ brew install node sox
$ brew install imagemagick ffmpeg
https://www.codeandweb.com/texturepacker/documentation/installation-and-licensing
When using the npm package locally:
$ npm install --save-dev @vpmedia/phixify
$ ./node_modules/.bin/phixify
When using the npm package globally:
$ npm install --global @vpmedia/phixify
$ phixify
When using the git repository:
$ git clone [email protected]:vpmedia/phixify.git
$ cd phixify
$ npm install
$ ./phixify.sh
https://github.com/vpmedia/phixify-example
- Input audio files must be in WAV format
- Input image files must be in PNG format
- All audio sprite source files must be in the same exact format (incl. bitrate and channels)
@vpmedia/phixify is developed by Andras Csizmadia [email protected] (www.vpmedia.hu)