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