Update: CC - Bacon - Before Render (o4c478xpx3.js) 38 bytes modified

beta.r3js.org
-=yb4f310 2018-02-18 12:34:02 +01:00
parent 794c2a678b
commit 913dafb660
1 changed files with 11 additions and 10 deletions

View File

@ -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();
}