node package manager
Easy sharing. Manage teams and permissions with one click. Create a free org ยป

webpack-game-asset-plugin

npm version dependencies Status devDependencies Status typedoc link

webpack-game-asset-plugin

webpack plugin for HTML5 game asset

usage - simple example

new assetPlugin({
  assetRoots: [
    "assets",
    ["assets/Data", "Data"]
  ],
  listOut: "resources.json",
  makeAtlas: true,
  compositor: "gm",
  atlasMap: [
    "game",
    "!game/effect"
  ]
})

Optional Depedencies

bitmapfont generation

  • @mapbox/shelf-pack
  • bitmapfont
  • xml2js
  • stream-buffers

texture packing

  • node-sprite-generator
  • node-sprite-generator composer
    • gm

making audiosrptie

  • audiosprite

audio encode

  • fluent-ffmpeg

option

see typedoc