From 0853f41506efdfdb2d2cdba5f6fe87a47ecd9135 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Fri, 23 Mar 2018 08:43:06 +0100 Subject: [PATCH] Update: CC - Snake FS - Before Render (zjq6ach3jt.js) 129 bytes modified --- zjq6ach3jt.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/zjq6ach3jt.js b/zjq6ach3jt.js index afb825c..d319d24 100644 --- a/zjq6ach3jt.js +++ b/zjq6ach3jt.js @@ -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);