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

beta.r3js.org
-=yb4f310 2018-03-24 15:40:53 +01:00
parent 01c61703cf
commit d7c6ebd0d2
1 changed files with 5 additions and 1 deletions

View File

@ -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