Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion flappyBird/Pipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Pipe {
this.height = height;
this.x = canvas.width;
this.isTop = isTop;
this.randomMultiplier = random(5);
this.randomMultiplier = 1;
if (isTop) {
this.topY = 0;
this.bottomY = this.height;
Expand Down
2 changes: 1 addition & 1 deletion flappyBird/sketch.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function setup() {

pauseBecauseDead = false;

population = new Population(1000);
population = new Population(10);

@Prometheos2 Prometheos2 Apr 13, 2019

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you change that value, if I may ask?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed this value because too big population can cause lags. Of course you can change population to 50 or 100 and it will be even better.

humanPlayer = new Player();
}

Expand Down