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