Update: CC - Bacon - Before Render (o4c478xpx3.js) 20 bytes modified
parent
4b6f97544b
commit
1d66189625
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
if (!this.entityLoaded) {
|
if (!this.entityLoaded) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -11,15 +10,15 @@ if (!this.initialized) {
|
||||||
|
|
||||||
this.totalTime = 0;
|
this.totalTime = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Waiting means - this block is on top of some blocks which are busy disappearing
|
* Waiting means - this block is on top of some blocks which are busy disappearing
|
||||||
* - so wait for the fall to complete
|
* - so wait for the fall to complete
|
||||||
*/
|
*/
|
||||||
this.waiting = false;
|
this.waiting = false;
|
||||||
|
|
||||||
this.animation = this.entityLoaded.animation;
|
this.animation = this.entityLoaded.animation;
|
||||||
|
|
||||||
this.translationSpeed = this.animation.translationSpeed;
|
this.translationSpeed = this.animation.translationSpeed;
|
||||||
|
|
||||||
this.drop = false;
|
this.drop = false;
|
||||||
|
|
||||||
|
@ -39,6 +38,8 @@ if (this.waiting) {
|
||||||
|
|
||||||
if (this.drop) {
|
if (this.drop) {
|
||||||
|
|
||||||
|
this.animation.translationSpeed = 70;
|
||||||
|
|
||||||
fall = true;
|
fall = true;
|
||||||
|
|
||||||
if (this.moveQueue && this.moveQueue.length > 0) {
|
if (this.moveQueue && this.moveQueue.length > 0) {
|
||||||
|
@ -65,9 +66,6 @@ if (this.totalTime > this.entityLoaded.speed) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fall) {
|
if (fall) {
|
||||||
|
|
||||||
this.animation.translationSpeed = 70;
|
|
||||||
|
|
||||||
moved = this.moveBlock(null, {down: true}, 1, true);
|
moved = this.moveBlock(null, {down: true}, 1, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,7 +83,7 @@ if (moved === false) {
|
||||||
|
|
||||||
this.stopBlock();
|
this.stopBlock();
|
||||||
|
|
||||||
this.animation.translationSpeed = this.translationSpeed;
|
this.animation.translationSpeed = this.translationSpeed;
|
||||||
}
|
}
|
||||||
|
|
||||||
//@ sourceURL=beforeRender.js
|
//@ sourceURL=beforeRender.js
|
Loading…
Reference in New Issue