more horse

This commit is contained in:
PolicyChanges1@gmail.com 2021-05-28 21:32:24 -04:00
parent fd83da7ebd
commit 15d5878ea9
3 changed files with 8 additions and 4 deletions

BIN
dist/sound/horse1.ogg vendored Normal file

Binary file not shown.

6
dist/tetrion.js vendored
View File

@ -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

View File

@ -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