Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 96 bytes modified
parent
7c097071ec
commit
de1408ee32
|
@ -1249,22 +1249,15 @@ GameLib.CustomCode.prototype.restore = function() {
|
||||||
* Restore our backup snake
|
* Restore our backup snake
|
||||||
*/
|
*/
|
||||||
this.snake = this.backupSnake.map(
|
this.snake = this.backupSnake.map(
|
||||||
function(body) {
|
function(body) {
|
||||||
|
return body.clone();
|
||||||
body.applyToMesh();
|
|
||||||
|
|
||||||
this.grid[body.position.x][body.position.y] = body;
|
|
||||||
|
|
||||||
return body;
|
|
||||||
}.bind(this)
|
}.bind(this)
|
||||||
);
|
);
|
||||||
|
|
||||||
this.state.orientation = this.backupOrientation;
|
this.state.orientation = this.backupOrientation;
|
||||||
|
|
||||||
this.visualizeGrid();
|
this.visualizeGrid();
|
||||||
|
|
||||||
this.backup();
|
|
||||||
|
|
||||||
}.bind(this)
|
}.bind(this)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue