From 913dafb660a59cad23023c40eb2aec1e27d26803 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Sun, 18 Feb 2018 12:34:02 +0100 Subject: [PATCH] Update: CC - Bacon - Before Render (o4c478xpx3.js) 38 bytes modified --- o4c478xpx3.js | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) 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(); }