blocks fade in on shoot

This commit is contained in:
garrettdreyfus 2014-05-24 14:12:33 -04:00
parent 99fca37ea4
commit c464192afe

View file

@ -12,7 +12,7 @@ function Block(lane, color, iter, distFromHex, settled) {
this.deleted = 0;
this.removed = 0;
this.tint = 0; //todo
this.opacity = 1;
this.opacity = 0;
this.initialization = 1;
this.parentArr;
this.iter = iter;
@ -43,6 +43,9 @@ function Block(lane, color, iter, distFromHex, settled) {
}
}
}
if(!this.deleted && this.opacity<1){
this.opacity = this.opacity + 0.05;
}
};
this.getIndex = function (){