Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 5 bytes modified
parent
a390d943eb
commit
bb689c6c78
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue