Skip to content

Commit

Permalink
fork fix for larger screens
Browse files Browse the repository at this point in the history
  • Loading branch information
rydrman committed Jan 26, 2014
1 parent 223c7c0 commit 5ada633
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions Generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ Generator.prototype.generateCharacter = function(size, enemy, hue)
ctxMain.fillStyle = 'black';
ctxMain.beginPath();

ctxMain.arc(pos1X - this.getSeedVal(rad1 * 0.25, rad1 * 0.75),
pos1Y - this.getSeedVal(rad1 * 0.25, rad1 * 0.75),
ctxMain.arc(pos1X + this.getSeedVal(-rad1 * 0.25, rad1 * 0.75),
pos1Y + this.getSeedVal(-rad1 * 0.25, rad1 * 0.75),
this.getSeedVal(rad1 * 0.125, rad1 * 0.25),
0,
Math.twoPI,
Expand Down
28 changes: 14 additions & 14 deletions chunkGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,32 +26,32 @@ chunkGenerator.prototype.generateFork = function(startPoint) {


result.upper.push({'x': startPoint.x,
'y': startPoint.y - 200,
'damage': false });
result.upper.push({'x': startPoint.x + 500,
'y': startPoint.y - 350,
'y': startPoint.y - 400,
'damage': false });
result.upper.push({'x': startPoint.x + 1000,
'y': startPoint.y - 350,
'damage': false });
result.upper.push({'x': startPoint.x + 1500,
'y': startPoint.y - 500,
'y': startPoint.y - 700,
'damage': false });
result.upper.push({'x': startPoint.x + 2000,
'y': startPoint.y - 700,
'damage': false });
result.upper.push({'x': startPoint.x + 3000,
'y': startPoint.y - 1000,
'damage': false });
result.upper.push({'x': startPoint.x + 4000,
'y': startPoint.y - 1400,
'damage': false });

result.lower.push({'x': startPoint.x,
'y': startPoint.y - 180,
'damage': false });
result.lower.push({'x': startPoint.x + 500,
'y': startPoint.y - 180,
'y': startPoint.y - 360,
'damage': false });
result.lower.push({'x': startPoint.x + 1000,
'y': startPoint.y - 200,
'y': startPoint.y - 360,
'damage': false });
result.lower.push({'x': startPoint.x + 2000,
'y': startPoint.y - 600,
'y': startPoint.y - 400,
'damage': false });
result.lower.push({'x': startPoint.x + 4000,
'y': startPoint.y - 1200,
'damage': false });

result.lastUpper = result.upper[result.upper.length -1];
Expand Down

0 comments on commit 5ada633

Please sign in to comment.