diff --git a/21g30t1e75.js b/21g30t1e75.js index 26f7460..18c5256 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -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) /**