Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 72 bytes modified
parent
f9dec9faa8
commit
73cdd18980
|
@ -310,8 +310,8 @@ GameLib.CustomCode.SnakeBody.LastZ = 0;
|
||||||
|
|
||||||
GameLib.CustomCode.SnakeBody.prototype.applyToMesh = function() {
|
GameLib.CustomCode.SnakeBody.prototype.applyToMesh = function() {
|
||||||
|
|
||||||
this.mesh.position.x = this.position.x + GameLib.CustomCode.GRID_OFFSET_X;
|
this.mesh.position.x = (this.position.x * GameLib.CustomCode.BODY_SCALE_X) + GameLib.CustomCode.GRID_OFFSET_X;
|
||||||
this.mesh.position.y = this.position.y + GameLib.CustomCode.GRID_OFFSET_Y;
|
this.mesh.position.y = (this.position.y * GameLib.CustomCode.BODY_SCALE_Y) + GameLib.CustomCode.GRID_OFFSET_Y;
|
||||||
|
|
||||||
//if ((this.mesh.rotation.z - (this.orientation * Math.PI / 2)) > Math.PI) {
|
//if ((this.mesh.rotation.z - (this.orientation * Math.PI / 2)) > Math.PI) {
|
||||||
// this.mesh.rotation.z -= Math.PI;
|
// this.mesh.rotation.z -= Math.PI;
|
||||||
|
|
Loading…
Reference in New Issue