diff --git a/21g30t1e75.js b/21g30t1e75.js index 49e906b..713b5ab 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -65,6 +65,8 @@ GameLib.CustomCode.OBJECT_TYPE_SNAKE_BODY = 1; GameLib.CustomCode.OBJECT_TYPE_FOOD = 2; GameLib.CustomCode.OBJECT_TYPE_POWERUP = 3; +this.extendSpeedGrain = (GameLib.CustomCode.SPEED_INITIAL - GameLib.CustomCode.MAX_SPEED) / (GameLib.CustomCode.GRID_WIDTH * GameLib.CustomCode.GRID_HEIGHT); + /** * Get runtime */ @@ -1157,6 +1159,8 @@ GameLib.CustomCode.prototype.extend = function(gameObject, position, orientation this.gameOver(true); } + this.speed -= this.extendSpeedGrain; + }.bind(this); /**