blocks fade in on shoot
This commit is contained in:
parent
99fca37ea4
commit
c464192afe
1 changed files with 4 additions and 1 deletions
|
@ -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 (){
|
||||
|
|
Loading…
Reference in a new issue