Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 13 bytes modified

beta.r3js.org
-=yb4f310 2018-03-13 13:43:41 +01:00
parent 1db4296513
commit ef0728e517
1 changed files with 2 additions and 2 deletions

View File

@ -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;