Update: CC - Snake FS - Before Render (zjq6ach3jt.js) 129 bytes modified

beta.r3js.org
-=yb4f310 2018-03-23 08:43:06 +01:00
parent cc02305c6e
commit 0853f41506
1 changed files with 11 additions and 0 deletions

View File

@ -3,9 +3,20 @@ if (!this.entityLoaded) {
}
if (!this.initialized) {
this.state = this.entityLoaded.state;
this.initialized = true;
}
if (this.state.exploding) {
/**
* Wait until finished exploding
*/
return;
}
this.advanceSnake(data.delta);
this.createFood(data.delta);