constant/debug.js

/**
 * AngularJS constant storing debug settings for when debug is enabled in the
 * envService.
 *
 * The `use` properties toggle options. Below them are more specific information
 * related to the toggle or new options.
 *
 * @global
 * @constant {Object} debugData
 * @see https://docs.angularjs.org/api/ng/type/angular.Module#constant
 */
angular.module('tgaApp').constant('debugData', {
  use: {
    // use music provided locally
    music: false,
    // use a JSON gameData file
    gameData: false,
    // set the starting state of the game
    initialState: false,
    // force a theme
    theme: false,
  },
  // disable API calls from the APIManager
  noAPI: false,
  // path to debug music file
  music: 'assets/debug/music.mp3',
  // path to gameData JSON file
  gameData: 'assets/debug/game-data.json',
  // set the initial state
  initialState: 'splash',
  // theme to force
  theme: 'origami',
});