constant/game-config.js

/**
 * AngularJS constant storing base config information for the game.
 *
 * @global
 * @constant {Object} gameConfig
 * @see https://docs.angularjs.org/api/ng/type/angular.Module#constant
 */
angular.module('tgaApp').constant('gameConfig', {
  // storage namespace
  namespace: 'tta_wrapper',
  // volume of music
  musicVolume: 0.5,
  audio: true,
  // does this window scale? if so, what is the internal width and height
  // scale: {
  //   width: 1920,
  //   height: 1080,
  // },
  // override default wrapper Instructor Mode handling
  // customInstructorHandling: false,
  // do we have some different states than the default? if so declare explicitly all states in an array
  // states: [
  //   'splash',
  //   'info',
  //   'register',
  //   'tutorial',
  //   'lobby',
  //   'game',
  //   'gameover',
  //   'unauthorized',
  // ],
});