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.x = position.x;
|
||||||
body.position.y = position.y;
|
body.position.y = position.y;
|
||||||
|
|
||||||
//body.rotation = rotation;
|
body.rotation += this.state.rotation;
|
||||||
|
|
||||||
position.x = tempPosition.x;
|
position.x = tempPosition.x;
|
||||||
position.y = tempPosition.y;
|
position.y = tempPosition.y;
|
||||||
|
@ -232,6 +232,8 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
|
||||||
}.bind(this)
|
}.bind(this)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
this.state.rotation = 0;
|
||||||
|
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue