Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 264 bytes modified
parent
6a864c95e8
commit
192b74231a
|
@ -231,8 +231,6 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
|
||||||
);
|
);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var temp = {
|
var temp = {
|
||||||
x : body.position.x,
|
x : body.position.x,
|
||||||
|
@ -265,6 +263,15 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
if (body.bodyType === GameLib.CustomCode.BODY_TYPE_CORNER) {
|
||||||
|
body.mesh.geometry = null;
|
||||||
|
body.mesh.materials = null;
|
||||||
|
body.mesh.remove();
|
||||||
|
body.mesh = body.backupMesh;
|
||||||
|
body.mesh.visible = true;
|
||||||
|
body.mesh.updateInstance('visible');
|
||||||
|
}
|
||||||
|
|
||||||
body.bodyType = backup.bodyType;
|
body.bodyType = backup.bodyType;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue