Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 96 bytes modified

beta.r3js.org
-=yb4f310 2018-03-23 16:29:54 +01:00
parent 7c097071ec
commit de1408ee32
1 changed files with 3 additions and 10 deletions

View File

@ -1249,22 +1249,15 @@ GameLib.CustomCode.prototype.restore = function() {
* Restore our backup snake
*/
this.snake = this.backupSnake.map(
function(body) {
body.applyToMesh();
this.grid[body.position.x][body.position.y] = body;
return body;
function(body) {
return body.clone();
}.bind(this)
);
this.state.orientation = this.backupOrientation;
this.visualizeGrid();
this.backup();
}.bind(this)
/**