Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 134 bytes modified
parent
0d10f5dabe
commit
a6102dd99e
|
@ -1256,7 +1256,14 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
|
||||||
)
|
)
|
||||||
|
|
||||||
this.state.turning = false;
|
this.state.turning = false;
|
||||||
|
|
||||||
|
if (this.state.eating) {
|
||||||
|
/**
|
||||||
|
* make a backup of the snake here
|
||||||
|
*/
|
||||||
|
console.log('snake just ate');
|
||||||
|
}
|
||||||
|
|
||||||
this.state.eating = false;
|
this.state.eating = false;
|
||||||
|
|
||||||
this.visualizeGrid();
|
this.visualizeGrid();
|
||||||
|
|
Loading…
Reference in New Issue