Skip to content

Commit

Permalink
more balancing
Browse files Browse the repository at this point in the history
  • Loading branch information
drj17 committed May 15, 2017
1 parent 71ba9dc commit c40f263
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions lib/bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/bundle.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/circle.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Enemy {
}

generateRandomRadius() {
return Math.floor(Math.random() * ((this.playerRadius*5) - this.playerRadius/1.5)) + this.playerRadius/1.5;
return Math.floor(Math.random() * ((this.playerRadius*5) - this.playerRadius/3)) + this.playerRadius/3;
}

generateRandomVelocity() {
Expand Down
3 changes: 1 addition & 2 deletions lib/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ class Game {
pause(){
this.paused = true;
clearInterval(this.interval);
debugger
this.pauseOverlay.style.display = 'block';
}

Expand All @@ -60,7 +59,7 @@ class Game {
}

generateCircles() {
for(let i = 0; i < 15; i++){
for(let i = 0; i < 20; i++){
let circle = new Circle(true, this.player.radius);
this.circles.push(circle);
}
Expand Down

0 comments on commit c40f263

Please sign in to comment.