Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 6 bytes modified
parent
e119b87bef
commit
0f1b44d5f0
|
@ -832,6 +832,7 @@ GameLib.CustomCode.prototype.extend = function(gameObject, position, orientation
|
||||||
throw new Error('unhandled food type: ' + gameObject.type);
|
throw new Error('unhandled food type: ' + gameObject.type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
if (orientation === GameLib.CustomCode.ORIENTATION_UP) {
|
if (orientation === GameLib.CustomCode.ORIENTATION_UP) {
|
||||||
body.mesh.position.y -= 0.5 * GameLib.CustomCode.BODY_SCALE_Y;
|
body.mesh.position.y -= 0.5 * GameLib.CustomCode.BODY_SCALE_Y;
|
||||||
}
|
}
|
||||||
|
@ -846,7 +847,7 @@ GameLib.CustomCode.prototype.extend = function(gameObject, position, orientation
|
||||||
|
|
||||||
if (orientation === GameLib.CustomCode.ORIENTATION_RIGHT) {
|
if (orientation === GameLib.CustomCode.ORIENTATION_RIGHT) {
|
||||||
body.mesh.position.x -= 0.5 * GameLib.CustomCode.BODY_SCALE_X;
|
body.mesh.position.x -= 0.5 * GameLib.CustomCode.BODY_SCALE_X;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
body.mesh.updateInstance('position');
|
body.mesh.updateInstance('position');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue