Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 111 bytes modified
parent
3d969c1568
commit
bb75ab1a9c
|
@ -243,6 +243,12 @@ GameLib.CustomCode.prototype.createFood = function(delta) {
|
|||
}
|
||||
)
|
||||
|
||||
if (this.food.length >= GameLib.CustomCode.MAX_FOOD_ITEMS) {
|
||||
this.food.shift();
|
||||
}
|
||||
|
||||
this.rebuildGrid();
|
||||
|
||||
}.bind(this);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue