fixes
This commit is contained in:
parent
0fd62dca81
commit
00e6287cf4
5
dist/tetrion.js
vendored
5
dist/tetrion.js
vendored
@ -961,13 +961,12 @@ Tetris.prototype = {
|
|||||||
|
|
||||||
// Print Sequence Data to console
|
// Print Sequence Data to console
|
||||||
console.log("this.hintQueue = new Array(");
|
console.log("this.hintQueue = new Array(");
|
||||||
this.shapeQueue.slice().reverse().forEach( function(shape, idx) { console.log("shapes.getShape("+shape.nType()+"),"); } );
|
this.shapeQueue.slice().reverse().forEach( function(shape, idx, arr) { console.log("shapes.getShape("+shape.nType()+ ((idx === arr.length-1) ? "));" : "),") ); } );
|
||||||
|
|
||||||
console.log("var hintDataList = [");
|
|
||||||
var shapes = [];
|
var shapes = [];
|
||||||
this.shapeQueue.slice().reverse().forEach( function(shape, idx) { shapes.push(shape.x); shapes.push(shape.y); shapes.push(shape.state); } );
|
this.shapeQueue.slice().reverse().forEach( function(shape, idx) { shapes.push(shape.x); shapes.push(shape.y); shapes.push(shape.state); } );
|
||||||
|
|
||||||
console.log(shapes.join(",") + "];");
|
console.log("var hintDataList = [" + shapes.join(",") + "];");
|
||||||
console.log("this.createHintQueue(hintDataList);");
|
console.log("this.createHintQueue(hintDataList);");
|
||||||
|
|
||||||
openers.addSequence(this.shapeQueue);
|
openers.addSequence(this.shapeQueue);
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
<iframe id="bg" width="640" height="360" frameborder="0" src="" ></iframe>
|
<iframe id="bg" width="640" height="360" frameborder="0" src="" ></iframe>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
if( (Math.floor(Math.random() * Math.floor(10)) % 10) == 0) {
|
if( (Math.floor(Math.random() * Math.floor(10)) % 3) == 0) {
|
||||||
document.getElementById("bg").src="https://www.shadertoy.com/embed/MlSSRt?gui=&paused=false&muted=false";
|
document.getElementById("bg").src="https://www.shadertoy.com/embed/MlSSRt?gui=&paused=false&muted=false";
|
||||||
document.getElementById("bg").style.webkitFilter = "blur(4px)";
|
document.getElementById("bg").style.webkitFilter = "blur(4px)";
|
||||||
}
|
}
|
||||||
|
@ -277,13 +277,12 @@ Tetris.prototype = {
|
|||||||
|
|
||||||
// Print Sequence Data to console
|
// Print Sequence Data to console
|
||||||
console.log("this.hintQueue = new Array(");
|
console.log("this.hintQueue = new Array(");
|
||||||
this.shapeQueue.slice().reverse().forEach( function(shape, idx) { console.log("shapes.getShape("+shape.nType()+"),"); } );
|
this.shapeQueue.slice().reverse().forEach( function(shape, idx, arr) { console.log("shapes.getShape("+shape.nType()+ ((idx === arr.length-1) ? "));" : "),") ); } );
|
||||||
|
|
||||||
console.log("var hintDataList = [");
|
|
||||||
var shapes = [];
|
var shapes = [];
|
||||||
this.shapeQueue.slice().reverse().forEach( function(shape, idx) { shapes.push(shape.x); shapes.push(shape.y); shapes.push(shape.state); } );
|
this.shapeQueue.slice().reverse().forEach( function(shape, idx) { shapes.push(shape.x); shapes.push(shape.y); shapes.push(shape.state); } );
|
||||||
|
|
||||||
console.log(shapes.join(",") + "];");
|
console.log("var hintDataList = [" + shapes.join(",") + "];");
|
||||||
console.log("this.createHintQueue(hintDataList);");
|
console.log("this.createHintQueue(hintDataList);");
|
||||||
|
|
||||||
openers.addSequence(this.shapeQueue);
|
openers.addSequence(this.shapeQueue);
|
||||||
|
Loading…
Reference in New Issue
Block a user