p
Size: a a a
p
V
V
p
V
V
p
for (var i = 0 ; i < this.snakeLength ; i++) {
this.sections[i].body.x = this.headPath[index].x;
this.sections[i].body.y = this.headPath[index].y;
//hide sections if they are at the same position
if (lastIndex && index == lastIndex) {
this.sections[i].alpha = 0;
}
else {
this.sections[i].alpha = 1;
}
V
for (var i = 0 ; i < this.snakeLength ; i++) {
this.sections[i].body.x = this.headPath[index].x;
this.sections[i].body.y = this.headPath[index].y;
//hide sections if they are at the same position
if (lastIndex && index == lastIndex) {
this.sections[i].alpha = 0;
}
else {
this.sections[i].alpha = 1;
}
p
V
V
V
V
V
V
V
p
V