diff --git a/o4c478xpx3.js b/o4c478xpx3.js index 930949f..607ddcf 100644 --- a/o4c478xpx3.js +++ b/o4c478xpx3.js @@ -2,20 +2,21 @@ if (!this.entityLoaded) { return; } +if (this.entityLoaded.gameOver) { + return; +} + if (!this.initialized) { - + this.totalTime = 0; + this.waiting = false; - this.gameOver = false; + this.moveQueue = []; this.initialized = true; } -if (this.gameOver) { - return; -} - var moved = true; var fall = false; @@ -36,7 +37,7 @@ if (this.drop) { var move = this.moveQueue[0]; - if (this.moveBlock(this.block, move, 1, true)) { + if (this.moveBlock(null, move, 1, true)) { this.moveQueue.splice(0, 1); tryMove(); } @@ -53,7 +54,7 @@ if (this.totalTime > this.entityLoaded.speed) { } if (fall) { - moved = this.moveBlock(this.block, {down: true}, 1, true); + moved = this.moveBlock(null, {down: true}, 1, true); } if (moved === null) { @@ -63,11 +64,11 @@ if (moved === null) { } if (moved === false) { - + this.drop = false; this.moveQueue = []; - + this.bottomReached(); }