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

beta.r3js.org
-=yb4f310 2018-03-23 08:44:25 +01:00
parent 0853f41506
commit c995e3a9c1
1 changed files with 12 additions and 0 deletions

View File

@ -572,6 +572,10 @@ GameLib.CustomCode.prototype.createGameObject = function(
GameLib.CustomCode.prototype.createPowerup = function(delta) {
if (this.state.exploding) {
return;
}
this.powerupTime += delta;
if (this.powerupTime > this.nextPowerupTime) {
@ -590,6 +594,10 @@ GameLib.CustomCode.prototype.createPowerup = function(delta) {
GameLib.CustomCode.prototype.createFood = function(delta) {
if (this.state.exploding) {
return;
}
this.foodTime += delta;
if (this.foodTime > this.foodSpeed) {
@ -944,6 +952,10 @@ GameLib.CustomCode.prototype.createCorner = function(body, temp) {
*/
GameLib.CustomCode.prototype.advanceSnake = function(delta) {
if (this.state.exploding) {
return;
}
this.advanceTime += delta;
if (this.advanceTime > this.speed) {