/*
 * The `assets` module
 * ============================================================================
 *
 * Use this module to declare static Phaser Asset Packs, that would be loaded
 * using the `Loader#pack` API.
 *
 * Regarding how the game assets should be declared using this file, refer to
 * the sample `assetPack.json` included in the Phaser package, under
 * `node_modules/phaser/resources/` directory, for a more complete
 * reference.
 *
 */


export default {

  // - Boot Assets ------------------------------------------------------------
  boot: [
    {
      key: 'splash-screen',
      type: 'image'
    },

    {
      key: 'progress-bar',
      type: 'image'
    }
  ],

  intro: [
    {
      key: 'title',
      type: 'image'
    },

    {
      key: 'logo',
      type: 'image'
    }
  ],

  // - Game assets ------------------------------------------------------------
  game: [
    {
      key: 'phaser',
      type: 'image'
    },

    {
      key: 'logo',
      type: 'image'
    },

    {
      key: 'title',
      type: 'image'
    },

    {
      key: 'infobox',
      type: 'image'
    },

    {
      key: 'blocks',
      type: 'image',
      //type: 'spritesheet',
      //frameWidth: 60,
      //frameHeight:60,
      //frameMax:   18,
      //margin:     0,
      //spacing:    0
    },

    {
      key: 'buttons',
      type: 'spritesheet',
      frameWidth: 60,
      frameHeight:60,
      frameMax:   26,
      margin:     0,
      spacing:    0
    },

    {
      type: 'audio',
      key: 'bump',
      urls: [ 'bump.wav' ]
    },
    {
      type: 'audio',
      key: 'exit',
      urls: [ 'exit.wav' ]
    },
    {
      type: 'audio',
      key: 'tied',
      urls: [ 'tied.wav' ]
    },

    // Example: adding a background music.
    // {
    //   key: 'tune',
    //   type: 'audio',
    //   urls: [ 'tune.oga', 'tune.m4a' ]
    // }

    // Example: adding a audio sprite containing sound effects.
    // {
    //   key: 'sfx',
    //   type: 'audiosprite',
    //   urls: [ 'sfx.m4a' ],
    //   jsonURL: 'sfx.json'
    // }
  ]

};
