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

beta.r3js.org
-=yb4f310 2018-03-12 21:01:10 +01:00
parent 13cb4b74b4
commit db5c5f9e78
1 changed files with 3 additions and 3 deletions

View File

@ -130,9 +130,9 @@ GameLib.CustomCode.SnakeBody = function(
case GameLib.CustomCode.BODY_TYPE_HEAD : case GameLib.CustomCode.BODY_TYPE_HEAD :
break; break;
case GameLib.CustomCode.BODY_TYPE_TAIL : case GameLib.CustomCode.BODY_TYPE_TAIL :
mesh.rotation.z = Math.PI; this.mesh.rotation.z = Math.PI;
mesh.updateInstance('rotation'); this.mesh.updateInstance('rotation');
position.x += 1; this.position.x += 1;
break; break;
default : default :
throw new Error('unreachable statement'); throw new Error('unreachable statement');