From d7c6ebd0d28af9947688a061b76626ea04fe0d6f Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Sat, 24 Mar 2018 15:40:53 +0100 Subject: [PATCH] Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 90 bytes modified --- 21g30t1e75.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/21g30t1e75.js b/21g30t1e75.js index 1664475..a3feae9 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -43,6 +43,8 @@ GameLib.CustomCode.ANIMATION_SPEED_GRAIN = 0.2; GameLib.CustomCode.MIN_ANIMATION_SPEED = 2; GameLib.CustomCode.MAX_ANIMATION_SPEED = 10; +GameLib.CustomCode.SPEED_INCREASE_INTERVAL = 2; + GameLib.CustomCode.FOOD_BACON = 0; GameLib.CustomCode.FOOD_CHEESE = 1; GameLib.CustomCode.FOOD_ONION = 2; @@ -155,6 +157,7 @@ this.nextPowerupTime = GameLib.Utils.GetRandomIntInclusive( this.powerups = []; this.explodeTime = 0; +this.speedTimer = 0; /** * Orientation is 0, 1, 2 or 3, (up, left, down, right) - @@ -1745,7 +1748,8 @@ GameLib.Event.Subscribe( GameLib.CustomCode.POWERUP_WAIT_TIME_MAX ); - this.explodeTime = 0; + this.explodeTime = 0; + this.speedTimer = 0; /** * Re-initialize our other custom code components