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

beta.r3js.org
-=yb4f310 2018-03-19 09:37:42 +01:00
parent a390d943eb
commit bb689c6c78
1 changed files with 4 additions and 4 deletions

View File

@ -70,7 +70,7 @@ this.advanceTime = 0;
this.state = {
orientation : 0,
turning : false,
flip : false
flip : 0
};
GameLib.CustomCode.prototype.createMaterial = function(image) {
@ -159,7 +159,7 @@ GameLib.CustomCode.SnakeBody = function(
this.orientation = orientation;
if (GameLib.Utils.UndefinedOrNull(flip)) {
flip = false;
flip = 0;
}
this.flip = flip;
@ -202,8 +202,8 @@ GameLib.CustomCode.SnakeBody.prototype.applyToMesh = function(flip) {
this.mesh.rotation.z = this.orientation * Math.PI / 2;
if (this.backupMesh && flip) {
this.mesh.rotation.z += Math.PI / 2;
if (this.backupMesh) {
this.mesh.rotation.z += ((Math.PI / 2) * flip);
}
/**