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

beta.r3js.org
-=yb4f310 2018-03-13 14:05:32 +01:00
parent a246365673
commit b031b8eee2
1 changed files with 4 additions and 2 deletions

View File

@ -219,7 +219,7 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
body.position.x = position.x;
body.position.y = position.y;
//body.rotation = rotation;
body.rotation += this.state.rotation;
position.x = tempPosition.x;
position.y = tempPosition.y;
@ -230,7 +230,9 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
body.applyToMesh();
}.bind(this)
);
);
this.state.rotation = 0;
}.bind(this);