Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 108 bytes modified
parent
fbf164ad04
commit
e123a4c7a9
|
@ -1284,6 +1284,8 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
|
||||||
var temp = null;
|
var temp = null;
|
||||||
var advanced = false;
|
var advanced = false;
|
||||||
|
|
||||||
|
this.backup();
|
||||||
|
|
||||||
this.snake.map(
|
this.snake.map(
|
||||||
function(body, index) {
|
function(body, index) {
|
||||||
|
|
||||||
|
@ -1504,13 +1506,6 @@ 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
|
|
||||||
*/
|
|
||||||
this.backup();
|
|
||||||
}
|
|
||||||
|
|
||||||
this.state.eating = false;
|
this.state.eating = false;
|
||||||
|
|
||||||
this.visualizeGrid();
|
this.visualizeGrid();
|
||||||
|
|
Loading…
Reference in New Issue