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

beta.r3js.org
-=yb4f310 2018-03-22 12:03:38 +01:00
parent ad4e91a99c
commit b5f55bc1f5
1 changed files with 2 additions and 2 deletions

View File

@ -428,7 +428,7 @@ GameLib.CustomCode.prototype.createGameObject = function(
*/
if (currentGameObject.objectType === GameLib.CustomCode.OBJECT_TYPE_POWERUP) {
this.powerups.splice(
this.powerups.indexof(currentGameObject),
this.powerups.indexOf(currentGameObject),
1
);
}
@ -438,7 +438,7 @@ GameLib.CustomCode.prototype.createGameObject = function(
*/
if (currentGameObject.objectType === GameLib.CustomCode.OBJECT_TYPE_FOOD) {
this.food.splice(
this.food.indexof(currentGameObject),
this.food.indexOf(currentGameObject),
1
);
}