diff --git a/dist/sound/21099_45941-lq.ogg b/dist/sound/21099_45941-lq.ogg deleted file mode 100644 index a187e2b..0000000 Binary files a/dist/sound/21099_45941-lq.ogg and /dev/null differ diff --git a/dist/Affirm.ogg b/dist/sound/Affirm.ogg similarity index 100% rename from dist/Affirm.ogg rename to dist/sound/Affirm.ogg diff --git a/dist/Blop.ogg b/dist/sound/Blop.ogg similarity index 100% rename from dist/Blop.ogg rename to dist/sound/Blop.ogg diff --git a/dist/Blop2.ogg b/dist/sound/Blop2.ogg similarity index 100% rename from dist/Blop2.ogg rename to dist/sound/Blop2.ogg diff --git a/dist/Click.ogg b/dist/sound/Click.ogg similarity index 100% rename from dist/Click.ogg rename to dist/sound/Click.ogg diff --git a/dist/Failed.ogg b/dist/sound/Failed.ogg similarity index 100% rename from dist/Failed.ogg rename to dist/sound/Failed.ogg diff --git a/dist/Tetris.ogg b/dist/sound/Tetris.ogg similarity index 100% rename from dist/Tetris.ogg rename to dist/sound/Tetris.ogg diff --git a/dist/tetrion.js b/dist/tetrion.js index 94053be..c212baf 100644 --- a/dist/tetrion.js +++ b/dist/tetrion.js @@ -1067,7 +1067,7 @@ Tetris.prototype = { // Opener sequence completed if(this.currentMinoInx > openers.getLength()) { - new Audio("./dist/Affirm.ogg").play(); + new Audio("./dist/sound/Affirm.ogg").play(); if(this.isTimerOn) { var besttime = document.getElementById("besttime").value; var deltaTime = new Date().getTime() - this.sequencePrevTime; @@ -1339,7 +1339,7 @@ Tetris.prototype = { if(this._checkHint()) return; //this._fireShape(); this._recurseGameState(); - new Audio('./dist/Blop2.ogg').play(); + new Audio('./dist/sound/Blop2.ogg').play(); } this._draw(); this.isGameOver = checkGameOver(this.matrix); @@ -2735,14 +2735,14 @@ ShapeZR.prototype = { //Move the shape to the left goLeft: function(matrix) { if (isShapeCanMove(this, matrix, 'left')) { - new Audio('./dist/Click.ogg').play(); + new Audio('./dist/sound/Click.ogg').play(); this.x -= 1; } }, //Move the shape to the right goRight: function(matrix) { if (isShapeCanMove(this, matrix, 'right')) { - new Audio('./dist/Click.ogg').play(); + new Audio('./dist/sound/Click.ogg').play(); this.x += 1; } }, diff --git a/src/main.js b/src/main.js index f21f29c..e49e7e0 100644 --- a/src/main.js +++ b/src/main.js @@ -383,7 +383,7 @@ Tetris.prototype = { // Opener sequence completed if(this.currentMinoInx > openers.getLength()) { - new Audio("./dist/Affirm.ogg").play(); + new Audio("./dist/sound/Affirm.ogg").play(); if(this.isTimerOn) { var besttime = document.getElementById("besttime").value; var deltaTime = new Date().getTime() - this.sequencePrevTime; @@ -655,7 +655,7 @@ Tetris.prototype = { if(this._checkHint()) return; //this._fireShape(); this._recurseGameState(); - new Audio('./dist/Blop2.ogg').play(); + new Audio('./dist/sound/Blop2.ogg').play(); } this._draw(); this.isGameOver = checkGameOver(this.matrix); diff --git a/src/shapes.js b/src/shapes.js index b56ace7..43379f6 100644 --- a/src/shapes.js +++ b/src/shapes.js @@ -795,14 +795,14 @@ ShapeZR.prototype = { //Move the shape to the left goLeft: function(matrix) { if (isShapeCanMove(this, matrix, 'left')) { - new Audio('./dist/Click.ogg').play(); + new Audio('./dist/sound/Click.ogg').play(); this.x -= 1; } }, //Move the shape to the right goRight: function(matrix) { if (isShapeCanMove(this, matrix, 'right')) { - new Audio('./dist/Click.ogg').play(); + new Audio('./dist/sound/Click.ogg').play(); this.x += 1; } },