Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 108 bytes modified
parent
681a9b2f08
commit
3d4e913eea
|
@ -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)
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue