Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 199 bytes modified

beta.r3js.org
-=yb4f310 2018-03-24 15:18:01 +01:00
parent edd7978752
commit 0aa96bc135
1 changed files with 4 additions and 0 deletions

View File

@ -65,6 +65,8 @@ GameLib.CustomCode.OBJECT_TYPE_SNAKE_BODY = 1;
GameLib.CustomCode.OBJECT_TYPE_FOOD = 2; GameLib.CustomCode.OBJECT_TYPE_FOOD = 2;
GameLib.CustomCode.OBJECT_TYPE_POWERUP = 3; 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 * Get runtime
*/ */
@ -1157,6 +1159,8 @@ GameLib.CustomCode.prototype.extend = function(gameObject, position, orientation
this.gameOver(true); this.gameOver(true);
} }
this.speed -= this.extendSpeedGrain;
}.bind(this); }.bind(this);
/** /**