Browse Source

Offset hills ready for foreground content.

master
Starbeamrainbowlabs 5 years ago
parent
commit
9e246386c0
  1. 7
      renderer.js

7
renderer.js

@ -18,9 +18,10 @@ class Renderer
this.hillSets.push(new HillSet(new Vector(2048, this.canvas.height * 0.9), 0.4, "rgb(102, 164, 90)"));
this.hillSets.push(new HillSet(new Vector(2048, this.canvas.height * 0.6), 0.4, "rgb(43, 131, 35)"));
this.hillSets.push(new HillSet(new Vector(2048, this.canvas.height * 0.2), 0.4, "rgb(50, 111, 8)"));
this.hillSets[0].pos = new Vector(0, this.canvas.height - this.hillSets[0].size.y);
this.hillSets[1].pos = new Vector(0, this.canvas.height - this.hillSets[1].size.y);
this.hillSets[2].pos = new Vector(0, this.canvas.height - this.hillSets[2].size.y);
var hillOffset = this.canvas.height * 0.1;
this.hillSets[0].pos = new Vector(0, this.canvas.height - this.hillSets[0].size.y - hillOffset);
this.hillSets[1].pos = new Vector(0, this.canvas.height - this.hillSets[1].size.y - hillOffset);
this.hillSets[2].pos = new Vector(0, this.canvas.height - this.hillSets[2].size.y - hillOffset);
console.log(this.hillSets);
}

Loading…
Cancel
Save