Skip to content

Commit

Permalink
Add improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Karzam committed Dec 12, 2017
1 parent 6301575 commit df0a358
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

.DS_Store
6 changes: 6 additions & 0 deletions src/CloudManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ class CloudManager
this.cloud.anchor.set(0.5, 0.5);
this.cloud.position.set(renderer.width * 1.3, renderer.height * Math.random());

// Diversify clouds size
let minScale = 0.2;
let maxScale = 1.2;
let scale = Math.random() * (maxScale - minScale) + minScale;
this.cloud.scale.set(scale, scale);

stage.addChildAt(this.cloud, stage.children.length - 1);
this.cloudsList.push(this.cloud);
}.bind(this), 2000);
Expand Down

0 comments on commit df0a358

Please sign in to comment.