diff --git a/dist/sound/horse1.ogg b/dist/sound/horse1.ogg new file mode 100644 index 0000000..8d0b1d5 Binary files /dev/null and b/dist/sound/horse1.ogg differ diff --git a/dist/tetrion.js b/dist/tetrion.js index 94a1e8a..b754a8e 100644 --- a/dist/tetrion.js +++ b/dist/tetrion.js @@ -1156,7 +1156,7 @@ Tetris.prototype = { // Opener sequence completed if(this.currentMinoInx > openers.getLength()) { - //new Audio("./dist/sound/Affirm2.ogg").play(); + new Audio("./dist/sound/horse1.ogg").play(); if(this.isTimerOn) { var besttime = document.getElementById("besttime").value; var deltaTime = new Date().getTime() - this.sequencePrevTime; @@ -1514,8 +1514,10 @@ Tetris.prototype = { console.log("sides: " + side1+side2+side3+side4); // if Sides A and B + (C or D) are touching a Surface //considered a T-Spin - if((side1+side2+side3+side4) >= 3) + if((side1+side2+side3+side4) >= 3) { + new Audio("./dist/sound/horse1.ogg").play(); return 2; + } //if Sides C and D + (A or B) are touching a Surface //considered a Mini T-Spin diff --git a/src/main.js b/src/main.js index aaf5e7b..e7ee468 100644 --- a/src/main.js +++ b/src/main.js @@ -472,7 +472,7 @@ Tetris.prototype = { // Opener sequence completed if(this.currentMinoInx > openers.getLength()) { - //new Audio("./dist/sound/Affirm2.ogg").play(); + new Audio("./dist/sound/horse1.ogg").play(); if(this.isTimerOn) { var besttime = document.getElementById("besttime").value; var deltaTime = new Date().getTime() - this.sequencePrevTime; @@ -830,8 +830,10 @@ Tetris.prototype = { console.log("sides: " + side1+side2+side3+side4); // if Sides A and B + (C or D) are touching a Surface //considered a T-Spin - if((side1+side2+side3+side4) >= 3) + if((side1+side2+side3+side4) >= 3) { + new Audio("./dist/sound/horse1.ogg").play(); return 2; + } //if Sides C and D + (A or B) are touching a Surface //considered a Mini T-Spin