Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 37 bytes modified
parent
a246365673
commit
b031b8eee2
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue