Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 8 bytes modified
parent
2b3ef2ee6d
commit
c24b3953db
|
@ -245,6 +245,10 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
|
|||
|
||||
if (index === 0) {
|
||||
|
||||
body.advance(
|
||||
this.state.orientation
|
||||
);
|
||||
|
||||
backup = {
|
||||
position : {
|
||||
x : body.position.x,
|
||||
|
@ -252,10 +256,6 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
|
|||
},
|
||||
orientation : body.orientation
|
||||
}
|
||||
|
||||
body.advance(
|
||||
this.state.orientation
|
||||
);
|
||||
}
|
||||
|
||||
if (index > 0) {
|
||||
|
|
Loading…
Reference in New Issue