more horse
This commit is contained in:
parent
fd83da7ebd
commit
15d5878ea9
BIN
dist/sound/horse1.ogg
vendored
Normal file
BIN
dist/sound/horse1.ogg
vendored
Normal file
Binary file not shown.
6
dist/tetrion.js
vendored
6
dist/tetrion.js
vendored
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user