Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 41 bytes modified

beta.r3js.org
-=yb4f310 2018-03-19 14:21:10 +01:00
parent b7c6ea7fef
commit 26d428266e
1 changed files with 2 additions and 0 deletions

View File

@ -152,6 +152,8 @@ GameLib.CustomCode.SnakeBody = function(
this.mesh.position.z = GameLib.CustomCode.SnakeBody.LastZ;
GameLib.CustomCode.SnakeBody.LastZ += 0.1;
this.mesh.updateInstance('position');
if (GameLib.Utils.UndefinedOrNull(position)) {
position = {
x : Math.round(GameLib.CustomCode.GRID_WIDTH / 2),