diff --git a/dist/tetrion.js b/dist/tetrion.js
index 22bff98..aaf6e45 100644
--- a/dist/tetrion.js
+++ b/dist/tetrion.js
@@ -880,28 +880,13 @@ Tetris.prototype = {
this.currentOpener = 0;
},
- setTKIFonzieVar: function()
+ setCurrentOpener(opener)
{
this.isFreePlay = false;
this.doTest = false;
- this.currentOpener = 1;
+ this.currentOpener = opener;
this._restartHandler();
- },
- setDTCannonVar: function()
- {
- this.isFreePlay = false;
- this.doTest = false;
- this.currentOpener = 2;
- this._restartHandler();
-
- },
- setMKOStackingVar: function ()
- {
- this.isFreePlay = false;
- this.doTest = false;
- this.currentOpener = 3;
- this._restartHandler();
},
setDoTest: function()
{
@@ -1456,6 +1441,26 @@ var OpenerGenerator = {
shapes.getShape(4),
shapes.getShape(3));
break;
+ case 4:
+ //Pokemino's STD
+ this.shapeQueue = new Array(
+ shapes.getShape(0),
+ shapes.getShape(6),
+ shapes.getShape(1),
+ shapes.getShape(4),
+ shapes.getShape(2),
+ shapes.getShape(5),
+ shapes.getShape(3),
+ shapes.getShape(1),
+ shapes.getShape(5),
+ shapes.getShape(2),
+ shapes.getShape(0),
+ shapes.getShape(6),
+ shapes.getShape(2),
+ shapes.getShape(4),
+ shapes.getShape(3),
+ shapes.getShape(0),
+ shapes.getShape(3));
default:
return;
}
@@ -1532,7 +1537,7 @@ var OpenerGenerator = {
}
break;
case 3:
- //MKO Stacking // O - 1, I - 6, L - 0, S - 5, J - 4, Z - 2, T - 3
+ //MKO Stacking
this.hintQueue = new Array(
shapes.getShape(4),
shapes.getShape(5),
@@ -1558,6 +1563,35 @@ var OpenerGenerator = {
this.hintQueue[i].state = this.hintQueue[i].nextState(hintDataList[i * 3 + 2]);
}
break;
+ case 4:
+ //Pokemino's STD // O - 1, I - 6, L - 0, S - 5, J - 4, Z - 2, T - 3
+ this.hintQueue = new Array(
+ shapes.getShape(0),
+ shapes.getShape(6),
+ shapes.getShape(1),
+ shapes.getShape(4),
+ shapes.getShape(2),
+ shapes.getShape(5),
+ shapes.getShape(3),
+ shapes.getShape(1),
+ shapes.getShape(5),
+ shapes.getShape(2),
+ shapes.getShape(0),
+ shapes.getShape(6),
+ shapes.getShape(2),
+ shapes.getShape(4),
+ shapes.getShape(3),
+ shapes.getShape(0),
+ shapes.getShape(3));
+
+ var hintDataList = [0,17,1, 0,16,0, 4,18,0, 4,17,-1, 3,15,1, 8,17,-1, 2,17,2, 0,17,0, 0,15,-1, 1,15,0, 8,16,-2, 6,15,0, 3,14,1, 6,12,-1, 6,16,1, 2,16,-1, 7,17,2 ];
+
+ for(var i = 0; i < this.hintQueue.length; i++) {
+ this.hintQueue[i].x = hintDataList[i * 3];
+ this.hintQueue[i].y = hintDataList[i * 3 + 1];
+ this.hintQueue[i].state = this.hintQueue[i].nextState(hintDataList[i * 3 + 2]);
+ }
+ break;
default:
return;
}
diff --git a/index.html b/index.html
index 518e22f..be73f93 100644
--- a/index.html
+++ b/index.html
@@ -74,7 +74,7 @@ document.getElementById("divbg").removeAttribute("tabIndex");
Early O Piece:
- Mr. T-Spin's STD (reversed)
@@ -136,7 +136,7 @@ document.getElementById("divbg").removeAttribute("tabIndex");
-
+
@@ -150,9 +150,10 @@ document.getElementById("divbg").removeAttribute("tabIndex");
(function(){
var tetrion = new Tetris('tetris');
document.getElementById("setFreePlay").addEventListener("click", function() { tetrion.setFreePlay(); } );
- document.getElementById("setTKIFonzieVar").addEventListener("click", function() { tetrion.setTKIFonzieVar(); } );
- document.getElementById("setDTCannonVar").addEventListener("click", function() { tetrion.setDTCannonVar(); } );
- document.getElementById("setMKOStackingVar").addEventListener("click", function() { tetrion.setMKOStackingVar(); } );
+ document.getElementById("setTKIFonzieVar").addEventListener("click", function() { tetrion.setCurrentOpener(1); } );
+ document.getElementById("setDTCannonVar").addEventListener("click", function() { tetrion.setCurrentOpener(2); } );
+ document.getElementById("setMKOStackingVar").addEventListener("click", function() { tetrion.setCurrentOpener(3); } );
+ document.getElementById("setPokeminosSTDVar").addEventListener("click", function() { tetrion.setCurrentOpener(4); } );
document.getElementById("test").addEventListener("click", function() { tetrion.setDoTest(); } );
document.getElementById("settings").addEventListener("change", function() { tetrion.updateSettingTextBox(); } );
diff --git a/src/main.js b/src/main.js
index 10c3e36..decb749 100644
--- a/src/main.js
+++ b/src/main.js
@@ -179,28 +179,13 @@ Tetris.prototype = {
this.currentOpener = 0;
},
- setTKIFonzieVar: function()
+ setCurrentOpener(opener)
{
this.isFreePlay = false;
this.doTest = false;
- this.currentOpener = 1;
+ this.currentOpener = opener;
this._restartHandler();
- },
- setDTCannonVar: function()
- {
- this.isFreePlay = false;
- this.doTest = false;
- this.currentOpener = 2;
- this._restartHandler();
-
- },
- setMKOStackingVar: function ()
- {
- this.isFreePlay = false;
- this.doTest = false;
- this.currentOpener = 3;
- this._restartHandler();
},
setDoTest: function()
{
diff --git a/src/openers.js b/src/openers.js
index d3b7444..595ebba 100644
--- a/src/openers.js
+++ b/src/openers.js
@@ -63,6 +63,26 @@ var OpenerGenerator = {
shapes.getShape(4),
shapes.getShape(3));
break;
+ case 4:
+ //Pokemino's STD
+ this.shapeQueue = new Array(
+ shapes.getShape(0),
+ shapes.getShape(6),
+ shapes.getShape(1),
+ shapes.getShape(4),
+ shapes.getShape(2),
+ shapes.getShape(5),
+ shapes.getShape(3),
+ shapes.getShape(1),
+ shapes.getShape(5),
+ shapes.getShape(2),
+ shapes.getShape(0),
+ shapes.getShape(6),
+ shapes.getShape(2),
+ shapes.getShape(4),
+ shapes.getShape(3),
+ shapes.getShape(0),
+ shapes.getShape(3));
default:
return;
}
@@ -139,7 +159,7 @@ var OpenerGenerator = {
}
break;
case 3:
- //MKO Stacking // O - 1, I - 6, L - 0, S - 5, J - 4, Z - 2, T - 3
+ //MKO Stacking
this.hintQueue = new Array(
shapes.getShape(4),
shapes.getShape(5),
@@ -165,6 +185,35 @@ var OpenerGenerator = {
this.hintQueue[i].state = this.hintQueue[i].nextState(hintDataList[i * 3 + 2]);
}
break;
+ case 4:
+ //Pokemino's STD // O - 1, I - 6, L - 0, S - 5, J - 4, Z - 2, T - 3
+ this.hintQueue = new Array(
+ shapes.getShape(0),
+ shapes.getShape(6),
+ shapes.getShape(1),
+ shapes.getShape(4),
+ shapes.getShape(2),
+ shapes.getShape(5),
+ shapes.getShape(3),
+ shapes.getShape(1),
+ shapes.getShape(5),
+ shapes.getShape(2),
+ shapes.getShape(0),
+ shapes.getShape(6),
+ shapes.getShape(2),
+ shapes.getShape(4),
+ shapes.getShape(3),
+ shapes.getShape(0),
+ shapes.getShape(3));
+
+ var hintDataList = [0,17,1, 0,16,0, 4,18,0, 4,17,-1, 3,15,1, 8,17,-1, 2,17,2, 0,17,0, 0,15,-1, 1,15,0, 8,16,-2, 6,15,0, 3,14,1, 6,12,-1, 6,16,1, 2,16,-1, 7,17,2 ];
+
+ for(var i = 0; i < this.hintQueue.length; i++) {
+ this.hintQueue[i].x = hintDataList[i * 3];
+ this.hintQueue[i].y = hintDataList[i * 3 + 1];
+ this.hintQueue[i].state = this.hintQueue[i].nextState(hintDataList[i * 3 + 2]);
+ }
+ break;
default:
return;
}