Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 57 bytes modified
parent
6e43d546a1
commit
bb80d1751c
|
@ -1147,11 +1147,14 @@ GameLib.CustomCode.prototype.createCorner = function(body, temp) {
|
||||||
GameLib.CustomCode.prototype.backup = function() {
|
GameLib.CustomCode.prototype.backup = function() {
|
||||||
|
|
||||||
if (GameLib.Utils.UndefinedOrNull(this.backupSnake)) {
|
if (GameLib.Utils.UndefinedOrNull(this.backupSnake)) {
|
||||||
|
|
||||||
this.backupSnake = this.snake.map(
|
this.backupSnake = this.snake.map(
|
||||||
function(body) {
|
function(body) {
|
||||||
return body.clone();
|
return body.clone();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
this.backupOrientation = this.state.orientation;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.backupPrevious = this.backupSnake.map(
|
this.backupPrevious = this.backupSnake.map(
|
||||||
|
|
Loading…
Reference in New Issue