Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 199 bytes modified
parent
edd7978752
commit
0aa96bc135
|
@ -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);
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue