Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 17 bytes modified
parent
a8bca943d4
commit
13dd3121d5
|
@ -181,6 +181,7 @@ GameLib.CustomCode.SnakeBody.prototype.applyToMesh = function() {
|
|||
|
||||
if (this.backupMesh) {
|
||||
this.mesh.rotation.z += ((Math.PI / 2) * this.flip);
|
||||
this.mesh.updateInstance('position');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -303,11 +304,9 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
|
|||
|
||||
body.backupMesh.updateInstance('visible');
|
||||
|
||||
//body.mesh = this.meshBreadCorner.clone();
|
||||
body.mesh = this.meshBreadCorner.clone();
|
||||
|
||||
//body.applyToMesh();
|
||||
|
||||
//body.mesh.updateInstance('position');
|
||||
body.applyToMesh();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue