function() {
    // Loop through the tiles and setup the audio listeners.
    for (var i=0; i<this.grid.length; i++) {
      if (this.grid[i] === 2) {
        var y = Math.floor(i / this.size);
        var x = i % this.size;
        game.audio.speaker(x, y);
      }
    }
  }
function() {
    // Loop through the tiles and setup the audio listeners.
    for (var i=0; i<this.grid.length; i++) {
      if (this.grid[i] === 2) {
        var y = Math.floor(i / this.size);
        var x = i % this.size;
        game.audio.speaker(x, y);
      }
    }
  }
function ( ) { // Loop through the tiles and setup the audio listeners. for ( var i = 0 ; i < this . grid . length ; i ++ ) { if ( this . grid [ i ] === 2 ) { var y = Math . floor ( i / this . size ) ; var x = i % this . size ; game . audio . speaker ( x , y ) ; } } }
Sets up the map including the speaker audio points.
Sets up the map including the speaker audio points .
Setup the audio listeners for the next tile