Skip to content

Commit

Permalink
difficulty adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
master-lincoln committed Feb 16, 2014
1 parent a20f675 commit 7a35d51
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/bird.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ define([], function() {
// --- constants
// circle with r=w and offset=(x,y) at current position
var boundingBox = {x:6, y:10, w:28};
var GRAVITY = 30;
var GRAVITY = 35;
var JUMP_HEIGHT = 60;
var MAX_VELOCITY = 200;

Expand Down
16 changes: 11 additions & 5 deletions src/difficulty.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,21 @@ define([], function() {
},
{
minPoints: 8,
pipeDistance: 210,
pipeDistance: 220,
pipeGap: 110,
speed: 2
speed: 2.2
},
{
minPoints: 15,
pipeDistance: 210,
pipeGap: 100,
speed: 2.2
pipeDistance: 220,
pipeGap: 90,
speed: 2.8
},
{
minPoints: 30,
pipeDistance: 220,
pipeGap: 80,
speed: 3.2
}
];

Expand Down
2 changes: 1 addition & 1 deletion src/pipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ define(['difficulty'], function(difficulty) {
this.gap = difficulty.getPipeGap();
var newX = lastX + difficulty.getPipeDistance();
lastX = newX;
this.position = {x:newX, y: Math.random()*210+210};
this.position = {x:newX, y:Math.random()*150+210};
};

Pipe.prototype.tick = function() { };
Expand Down

0 comments on commit 7a35d51

Please sign in to comment.