Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 13 bytes modified
parent
1db4296513
commit
ef0728e517
|
@ -174,7 +174,7 @@ GameLib.CustomCode.SnakeBody.prototype.advance = function(direction, rotation) {
|
|||
this.position.x += direction.x;
|
||||
this.position.y += direction.y;
|
||||
|
||||
//this.rotation = rotation;
|
||||
this.rotation = rotation;
|
||||
}
|
||||
|
||||
GameLib.CustomCode.prototype.advanceSnake = function(delta) {
|
||||
|
@ -202,7 +202,7 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
|
|||
position.x = body.position.x;
|
||||
position.y = body.position.y;
|
||||
|
||||
body.advance(this.direction);
|
||||
body.advance(this.direction, this.rotation);
|
||||
|
||||
} else {
|
||||
body.position.x = position.x;
|
||||
|
|
Loading…
Reference in New Issue