Update: CC - Snake FS - Before Render (zjq6ach3jt.js) 129 bytes modified
parent
cc02305c6e
commit
0853f41506
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue