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

beta.r3js.org
-=yb4f310 2018-03-23 15:21:27 +01:00
parent 681a9b2f08
commit 3d4e913eea
1 changed files with 7 additions and 1 deletions

View File

@ -1147,11 +1147,15 @@ GameLib.CustomCode.prototype.createCorner = function(body, temp) {
}.bind(this);
GameLib.CustomCode.prototype.backup = function() {
this.backupSnake = this.snake.map(
this.backupSnake = this.snake.map(
function(body) {
return body.clone();
}
);
this.backupOrientation = this.state.orientation;
}.bind(this)
GameLib.CustomCode.prototype.restore = function() {
@ -1203,6 +1207,8 @@ GameLib.CustomCode.prototype.restore = function() {
}
);
this.state.orientation = this.backupOrientation;
}.bind(this)
/**