Update: CC - Bacon - Before Render (o4c478xpx3.js) 38 bytes modified
parent
794c2a678b
commit
913dafb660
|
@ -2,20 +2,21 @@ if (!this.entityLoaded) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.entityLoaded.gameOver) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!this.initialized) {
|
if (!this.initialized) {
|
||||||
|
|
||||||
this.totalTime = 0;
|
this.totalTime = 0;
|
||||||
|
|
||||||
this.waiting = false;
|
this.waiting = false;
|
||||||
this.gameOver = false;
|
|
||||||
this.moveQueue = [];
|
this.moveQueue = [];
|
||||||
|
|
||||||
this.initialized = true;
|
this.initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.gameOver) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var moved = true;
|
var moved = true;
|
||||||
var fall = false;
|
var fall = false;
|
||||||
|
|
||||||
|
@ -36,7 +37,7 @@ if (this.drop) {
|
||||||
|
|
||||||
var move = this.moveQueue[0];
|
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);
|
this.moveQueue.splice(0, 1);
|
||||||
tryMove();
|
tryMove();
|
||||||
}
|
}
|
||||||
|
@ -53,7 +54,7 @@ if (this.totalTime > this.entityLoaded.speed) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fall) {
|
if (fall) {
|
||||||
moved = this.moveBlock(this.block, {down: true}, 1, true);
|
moved = this.moveBlock(null, {down: true}, 1, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (moved === null) {
|
if (moved === null) {
|
||||||
|
|
Loading…
Reference in New Issue