Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 264 bytes modified
parent
6a864c95e8
commit
192b74231a
|
@ -232,8 +232,6 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
|
|||
|
||||
} else {
|
||||
|
||||
|
||||
|
||||
var temp = {
|
||||
x : body.position.x,
|
||||
y : body.position.y,
|
||||
|
@ -265,6 +263,15 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
|
|||
|
||||
} 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;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue